Skip to content

Commit

Permalink
L1Trigger/GlobalTriggerAnalyzer: replace auto_ptr removed in strict s…
Browse files Browse the repository at this point in the history
…td=c++17
  • Loading branch information
gartung committed Sep 27, 2018
1 parent 6cb583d commit 2f7d22b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class L1GtPatternGenerator : public edm::EDAnalyzer
std::vector<uint32_t> m_columnDefaults;
bool m_debug;

std::auto_ptr<L1GtPatternWriter> m_writer;
std::unique_ptr<L1GtPatternWriter> m_writer;
};

#endif /*GlobalTriggerAnalyzer_L1GtPatternGenerator_h*/
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void L1GtPatternGenerator::beginJob()
edm::LogError("L1GtPatternGenerator") << "Failed to open output file " << m_fileName;
}

m_writer = std::auto_ptr<L1GtPatternWriter>(new L1GtPatternWriter(m_fileStream, m_header, m_footer, m_columnNames, m_columnLengths, m_columnDefaults, m_bx, m_debug));
m_writer = std::unique_ptr<L1GtPatternWriter>(new L1GtPatternWriter(m_fileStream, m_header, m_footer, m_columnNames, m_columnLengths, m_columnDefaults, m_bx, m_debug));
}

/** Method called once each job just after ending the event loop.
Expand Down

0 comments on commit 2f7d22b

Please sign in to comment.