Skip to content

Commit

Permalink
IORawData/CaloPatterns: 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 9364375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IORawData/CaloPatterns/src/HcalPatternXMLParser.cc
Expand Up @@ -10,7 +10,7 @@ XERCES_CPP_NAMESPACE_USE

class HcalPatternXMLParserImpl {
public:
std::auto_ptr<SAX2XMLReader> parser;
std::unique_ptr<SAX2XMLReader> parser;
};

HcalPatternXMLParser::HcalPatternXMLParser() {
Expand Down Expand Up @@ -153,7 +153,7 @@ void HcalPatternXMLParser::parse(const std::string& xmlDocument, std::map<std::s
try {
if (m_parser==nullptr) {
m_parser=new HcalPatternXMLParserImpl();
m_parser->parser=std::auto_ptr<xercesc::SAX2XMLReader>(xercesc::XMLReaderFactory::createXMLReader());
m_parser->parser=std::unique_ptr<xercesc::SAX2XMLReader>(xercesc::XMLReaderFactory::createXMLReader());
}

MemBufInputSource src((const unsigned char*)xmlDocument.c_str(), xmlDocument.length(),"hcal::PatternReader");
Expand Down

0 comments on commit 9364375

Please sign in to comment.