Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DQM/SiStripMonitorHardware: replace auto_ptr deprecated and removed in std=c++17 #24699

Merged
merged 1 commit into from
Oct 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DQM/SiStripMonitorHardware/src/FEDErrors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ bool FEDErrors::fillFatalFEDErrors(const FEDRawData& aFedData,
const unsigned int aPrintDebug)
{

std::auto_ptr<const sistrip::FEDBufferBase> bufferBase;
std::unique_ptr<const sistrip::FEDBufferBase> bufferBase;
try {
bufferBase.reset(new sistrip::FEDBufferBase(aFedData.data(),aFedData.size()));
} catch (const cms::Exception& e) {
Expand Down Expand Up @@ -347,7 +347,7 @@ bool FEDErrors::fillFEDErrors(const FEDRawData& aFedData,
if (!fillFatalFEDErrors(aFedData,aPrintDebug)) return false;

//need to construct full object to go any further
std::auto_ptr<const sistrip::FEDBuffer> buffer;
std::unique_ptr<const sistrip::FEDBuffer> buffer;
buffer.reset(new sistrip::FEDBuffer(aFedData.data(),aFedData.size(),true));

//fill remaining unpackerFEDcheck
Expand Down
2 changes: 1 addition & 1 deletion DQM/SiStripMonitorHardware/src/SiStripCMMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ SiStripCMMonitorPlugin::analyze(const edm::Event& iEvent,
continue;
}

std::auto_ptr<const sistrip::FEDBuffer> buffer;
std::unique_ptr<const sistrip::FEDBuffer> buffer;

if (!lFedErrors.fillFatalFEDErrors(fedData,0)) {
continue;
Expand Down
2 changes: 1 addition & 1 deletion DQM/SiStripMonitorHardware/src/SiStripFEDDataCheck.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ SiStripFEDCheckPlugin::analyze(const edm::Event& iEvent, const edm::EventSetup&
bool hasFatalErrors = false;
float rateNonFatal = 0;

std::auto_ptr<const sistrip::FEDBuffer> buffer;
std::unique_ptr<const sistrip::FEDBuffer> buffer;

if (!lFedErrors.fillFatalFEDErrors(fedData,0)) {
hasFatalErrors = true;
Expand Down
2 changes: 1 addition & 1 deletion DQM/SiStripMonitorHardware/src/SiStripSpyIdentifyRuns.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace sistrip {
if ( !input.data() ||!input.size() ) continue;

//construct FEDBuffer
std::auto_ptr<sistrip::FEDSpyBuffer> buffer;
std::unique_ptr<sistrip::FEDSpyBuffer> buffer;
try {
buffer.reset(new sistrip::FEDSpyBuffer(input.data(),input.size()));
} catch (const cms::Exception& e) {
Expand Down
4 changes: 2 additions & 2 deletions DQM/SiStripMonitorHardware/src/SiStripSpyUnpacker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ namespace sistrip {
auto conns = cabling.fedConnections(lFedId);

//construct FEDBuffer
std::auto_ptr<sistrip::FEDSpyBuffer> buffer;
std::unique_ptr<sistrip::FEDSpyBuffer> buffer;
try {
buffer.reset(new sistrip::FEDSpyBuffer(input.data(),input.size()));
if (!buffer->doChecks() && !allowIncompleteEvents_) {
Expand Down Expand Up @@ -209,7 +209,7 @@ namespace sistrip {
*aRunRef = lRef;

//create DSV to return
std::auto_ptr<RawDigis> pResult = dsvFiller.createDetSetVector();
std::unique_ptr<RawDigis> pResult = dsvFiller.createDetSetVector();
pDigis->swap(*pResult);

} // end of SpyUnpacker::createDigis method.
Expand Down