diff options
-rw-r--r-- | project2/xml/xmlDocumentCache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/project2/xml/xmlDocumentCache.cpp b/project2/xml/xmlDocumentCache.cpp index 94157ec..f981a24 100644 --- a/project2/xml/xmlDocumentCache.cpp +++ b/project2/xml/xmlDocumentCache.cpp @@ -24,8 +24,8 @@ static XmlDocumentCache::DocumentPtr helperThrow(const std::string & msg) { static XmlDocumentCache::DocumentPtr helperReturnDom(XmlDocumentCache::DomParserPtr dp) { return dp->get_document(); } -static XmlDocumentCache::DocumentPtr helperReturnDocument(XmlDocumentCache::DocumentPtr dp) { - return dp; +static XmlDocumentCache::DocumentPtr helperReturnDocument(boost::shared_ptr<xmlpp::Document> dp) { + return dp.get(); } XmlDocumentCache::XmlDocumentCache(ScriptNodePtr n) : @@ -87,7 +87,7 @@ XmlDocumentCache::queue(const Glib::ustring & url, boost::optional<std::string> // end hack XmlDocumentCache::documents.insert(XmlDocumentCache::Documents::value_type(url, - boost::bind(helperReturnDocument, XmlDocumentCache::DocumentPtr(new xmlpp::Document(doc))))); + boost::bind(helperReturnDocument, boost::shared_ptr<xmlpp::Document>(new xmlpp::Document(doc))))); } else { try { |