Skip to content

Commit

Permalink
Merge pull request #24705 from gartung/EventFilter-EcalTBRawToDigi-st…
Browse files Browse the repository at this point in the history
…rictcxx17

EventFilter/EcalTBRawToDigi: replace auto_ptr removed in strict std=c++17
  • Loading branch information
cmsbuild committed Sep 28, 2018
2 parents e857f0a + 87cd8a4 commit fdcf96e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EventFilter/EcalTBRawToDigi/test/stubs/EcalMatacqHist.cc
Expand Up @@ -17,7 +17,7 @@ EcalMatacqHist::EcalMatacqHist(const edm::ParameterSet& ps):
hTTrigMin = ps.getUntrackedParameter<double>("hTTrigMin", 0.);
hTTrigMax = ps.getUntrackedParameter<double>("hTTrigMax", 2000.);
TDirectory* dsave = gDirectory;
outFile = std::auto_ptr<TFile> (new TFile(outFileName.c_str(), "RECREATE"));
outFile = std::unique_ptr<TFile> (new TFile(outFileName.c_str(), "RECREATE"));
if(outFile->IsZombie()){
std::cout << "EcalMatacqHist: Failed to create file " << outFileName
<< " No histogram will be created.\n";
Expand Down
2 changes: 1 addition & 1 deletion EventFilter/EcalTBRawToDigi/test/stubs/EcalMatacqHist.h
Expand Up @@ -42,7 +42,7 @@ class EcalMatacqHist: public edm::EDAnalyzer{
int iEvent;
double hTTrigMin;
double hTTrigMax;
std::auto_ptr<TFile> outFile;
std::unique_ptr<TFile> outFile;
std::vector<TProfile> profiles;
//profile->MATACQ CH ID map
std::vector<int> profChId;
Expand Down

0 comments on commit fdcf96e

Please sign in to comment.