diff --git a/Code/Mantid/Framework/DataHandling/src/SNSDataArchive.cpp b/Code/Mantid/Framework/DataHandling/src/SNSDataArchive.cpp index f5a61f2a37d5..47458a5ef58e 100644 --- a/Code/Mantid/Framework/DataHandling/src/SNSDataArchive.cpp +++ b/Code/Mantid/Framework/DataHandling/src/SNSDataArchive.cpp @@ -20,11 +20,13 @@ #include #include #include +#include "Poco/DOM/AutoPtr.h" #include using Poco::Net::ConnectionRefusedException; using Poco::URI; +using namespace Poco::XML; namespace Mantid { @@ -75,7 +77,7 @@ std::string SNSDataArchive::getArchivePath(const std::set& filename // Create a DOM document from the response. Poco::XML::DOMParser parser; Poco::XML::InputSource source(rs); - Poco::XML::Document* pDoc = parser.parse(&source); + AutoPtr pDoc = parser.parse(&source); std::vector locations;