Skip to content

Commit

Permalink
Use AutoPtr for a Document re #8485
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Feb 11, 2014
1 parent 73b6c86 commit fe0de60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/Framework/DataHandling/src/SNSDataArchive.cpp
Expand Up @@ -20,11 +20,13 @@
#include <Poco/DOM/NodeList.h>
#include <Poco/DOM/NodeIterator.h>
#include <boost/algorithm/string/predicate.hpp>
#include "Poco/DOM/AutoPtr.h"

#include <iostream>

using Poco::Net::ConnectionRefusedException;
using Poco::URI;
using namespace Poco::XML;

namespace Mantid
{
Expand Down Expand Up @@ -75,7 +77,7 @@ std::string SNSDataArchive::getArchivePath(const std::set<std::string>& 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<Poco::XML::Document> pDoc = parser.parse(&source);

std::vector<std::string> locations;

Expand Down

0 comments on commit fe0de60

Please sign in to comment.