diff options
Diffstat (limited to 'unoxml/source/dom')
-rw-r--r-- | unoxml/source/dom/attr.cxx | 4 | ||||
-rw-r--r-- | unoxml/source/dom/characterdata.cxx | 10 | ||||
-rw-r--r-- | unoxml/source/dom/documentbuilder.cxx | 6 | ||||
-rw-r--r-- | unoxml/source/dom/element.cxx | 10 |
4 files changed, 15 insertions, 15 deletions
diff --git a/unoxml/source/dom/attr.cxx b/unoxml/source/dom/attr.cxx index 3a97fb73426b..bf03d9ac5d87 100644 --- a/unoxml/source/dom/attr.cxx +++ b/unoxml/source/dom/attr.cxx @@ -21,7 +21,7 @@ #include <string.h> -#include <boost/shared_ptr.hpp> +#include <memory> #include <osl/diagnose.h> @@ -185,7 +185,7 @@ namespace DOM // this does not work if the attribute was created anew // xmlNodePtr pNode = m_aAttrPtr->parent; // xmlSetProp(pNode, m_aAttrPtr->name, xValue); - ::boost::shared_ptr<xmlChar const> const buffer( + std::shared_ptr<xmlChar const> const buffer( xmlEncodeEntitiesReentrant(m_aAttrPtr->doc, xValue), xmlFree); xmlFreeNodeList(m_aAttrPtr->children); m_aAttrPtr->children = diff --git a/unoxml/source/dom/characterdata.cxx b/unoxml/source/dom/characterdata.cxx index 32a51de8d2dd..e1d7534edb21 100644 --- a/unoxml/source/dom/characterdata.cxx +++ b/unoxml/source/dom/characterdata.cxx @@ -21,7 +21,7 @@ #include <string.h> -#include <boost/shared_ptr.hpp> +#include <memory> #include <osl/diagnose.h> @@ -87,7 +87,7 @@ namespace DOM if (m_aNodePtr != NULL) { // get current data - ::boost::shared_ptr<xmlChar const> const pContent( + std::shared_ptr<xmlChar const> const pContent( xmlNodeGetContent(m_aNodePtr), xmlFree); OString aData(reinterpret_cast<sal_Char const*>(pContent.get())); OUString tmp(OStringToOUString(aData, RTL_TEXTENCODING_UTF8)); @@ -158,7 +158,7 @@ namespace DOM if (m_aNodePtr != NULL) { // get current data - ::boost::shared_ptr<xmlChar const> const pContent( + std::shared_ptr<xmlChar const> const pContent( xmlNodeGetContent(m_aNodePtr), xmlFree); OString aData(reinterpret_cast<sal_Char const*>(pContent.get())); OUString tmp(OStringToOUString(aData, RTL_TEXTENCODING_UTF8)); @@ -193,7 +193,7 @@ namespace DOM if (m_aNodePtr != NULL) { // get current data - ::boost::shared_ptr<xmlChar const> const pContent( + std::shared_ptr<xmlChar const> const pContent( xmlNodeGetContent(m_aNodePtr), xmlFree); OString aData(reinterpret_cast<sal_Char const*>(pContent.get())); OUString tmp(OStringToOUString(aData, RTL_TEXTENCODING_UTF8)); @@ -248,7 +248,7 @@ namespace DOM if (m_aNodePtr != NULL) { // get current data - ::boost::shared_ptr<xmlChar const> const pContent( + std::shared_ptr<xmlChar const> const pContent( xmlNodeGetContent(m_aNodePtr), xmlFree); OString aData(reinterpret_cast<sal_Char const*>(pContent.get())); OUString tmp(OStringToOUString(aData, RTL_TEXTENCODING_UTF8)); diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index d2f03be30fc0..f3948b8f9453 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -26,7 +26,7 @@ #include <libxml/xmlerror.h> #include <libxml/tree.h> -#include <boost/shared_ptr.hpp> +#include <memory> #include <rtl/alloc.h> #include <rtl/ustrbuf.hxx> @@ -318,7 +318,7 @@ namespace DOM ::osl::MutexGuard const g(m_Mutex); - ::boost::shared_ptr<xmlParserCtxt> const pContext( + std::shared_ptr<xmlParserCtxt> const pContext( xmlNewParserCtxt(), xmlFreeParserCtxt); // register error functions to prevent errors being printed @@ -351,7 +351,7 @@ namespace DOM { ::osl::MutexGuard const g(m_Mutex); - ::boost::shared_ptr<xmlParserCtxt> const pContext( + std::shared_ptr<xmlParserCtxt> const pContext( xmlNewParserCtxt(), xmlFreeParserCtxt); pContext->_private = this; pContext->sax->error = error_func; diff --git a/unoxml/source/dom/element.cxx b/unoxml/source/dom/element.cxx index ee2a25c81cb6..48abfdd21649 100644 --- a/unoxml/source/dom/element.cxx +++ b/unoxml/source/dom/element.cxx @@ -21,7 +21,7 @@ #include <string.h> -#include <boost/shared_ptr.hpp> +#include <memory> #include <osl/diagnose.h> #include <rtl/ustrbuf.hxx> @@ -240,7 +240,7 @@ namespace DOM } // search properties OString o1 = OUStringToOString(name, RTL_TEXTENCODING_UTF8); - ::boost::shared_ptr<xmlChar const> const pValue( + std::shared_ptr<xmlChar const> const pValue( xmlGetProp(m_aNodePtr, reinterpret_cast<xmlChar const *>(o1.getStr())), xmlFree); OUString const ret( (pValue) ? OUString(reinterpret_cast<sal_Char const*>(pValue.get()), @@ -324,7 +324,7 @@ namespace DOM OString o2 = OUStringToOString(namespaceURI, RTL_TEXTENCODING_UTF8); xmlChar const*const pNS = reinterpret_cast<xmlChar const*>(o2.getStr()); - ::boost::shared_ptr<xmlChar const> const pValue( + std::shared_ptr<xmlChar const> const pValue( xmlGetNsProp(m_aNodePtr, pName, pNS), xmlFree); if (0 == pValue) { return OUString(); @@ -628,7 +628,7 @@ namespace DOM } OUString oldValue; AttrChangeType aChangeType = AttrChangeType_MODIFICATION; - ::boost::shared_ptr<xmlChar const> const pOld( + std::shared_ptr<xmlChar const> const pOld( xmlGetProp(m_aNodePtr, xName), xmlFree); if (pOld == 0) { aChangeType = AttrChangeType_ADDITION; @@ -711,7 +711,7 @@ namespace DOM OUString oldValue; AttrChangeType aChangeType = AttrChangeType_MODIFICATION; - ::boost::shared_ptr<xmlChar const> const pOld( + std::shared_ptr<xmlChar const> const pOld( xmlGetNsProp(m_aNodePtr, xLName, pNs->href), xmlFree); if (pOld == 0) { aChangeType = AttrChangeType_ADDITION; |