Skip to content

Commit

Permalink
RecoBTag/PerformanceDB: replace auto_ptr removed in strict std=c++17
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung committed Sep 27, 2018
1 parent 6cb583d commit 9ddf343
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -64,7 +64,7 @@ class BTagPerformaceRootProducerFromSQLITE : public edm::EDAnalyzer {
// ----------member data ---------------------------
std::vector<std::string> names_;
edm::ESWatcher<BTagPerformanceRecord> recWatcher_;
std::auto_ptr<fwlite::RecordWriter> writer_;
std::unique_ptr<fwlite::RecordWriter> writer_;
edm::IOVSyncValue lastValue_;
};

Expand Down Expand Up @@ -106,7 +106,7 @@ BTagPerformaceRootProducerFromSQLITE::analyze(const edm::Event& iEvent, const ed
if(! writer_.get()) {
edm::Service<TFileService> fs ;
TFile * f = &(fs->file());
writer_ = std::auto_ptr<fwlite::RecordWriter>(new fwlite::RecordWriter(r.key().name(), f ));
writer_ = std::unique_ptr<fwlite::RecordWriter>(new fwlite::RecordWriter(r.key().name(), f ));
}
lastValue_ = r.validityInterval().last();

Expand Down

0 comments on commit 9ddf343

Please sign in to comment.