diff options
Diffstat (limited to 'framework/source/fwe/xml/saxnamespacefilter.cxx')
-rw-r--r-- | framework/source/fwe/xml/saxnamespacefilter.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/source/fwe/xml/saxnamespacefilter.cxx b/framework/source/fwe/xml/saxnamespacefilter.cxx index 5a05dfb54e43..b5349eb4887d 100644 --- a/framework/source/fwe/xml/saxnamespacefilter.cxx +++ b/framework/source/fwe/xml/saxnamespacefilter.cxx @@ -17,9 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -/** Attention: stl headers must(!) be included at first. Otherwise it can make trouble - with solaris headers ... -*/ +#include <sal/config.h> + #include <vector> #include <com/sun/star/xml/sax/SAXException.hpp> @@ -27,6 +26,7 @@ #include <xml/saxnamespacefilter.hxx> #include <comphelper/attributelist.hxx> +#include <rtl/ref.hxx> using namespace ::com::sun::star::xml::sax; using namespace ::com::sun::star::uno; @@ -58,7 +58,7 @@ void SAL_CALL SaxNamespaceFilter::startElement( if ( !m_aNamespaceStack.empty() ) aXMLNamespaces = m_aNamespaceStack.top(); - ::comphelper::AttributeList* pNewList = new ::comphelper::AttributeList(); + rtl::Reference<::comphelper::AttributeList> pNewList = new ::comphelper::AttributeList(); // examine all namespaces for this level ::std::vector< sal_Int16 > aAttributeIndexes; @@ -84,7 +84,7 @@ void SAL_CALL SaxNamespaceFilter::startElement( OUString aAttributeName = xAttribs->getNameByIndex(attributeIndex); OUString aValue = xAttribs->getValueByIndex(attributeIndex); OUString aNamespaceAttributeName = aXMLNamespaces.applyNSToAttributeName( aAttributeName ); - pNewList->AddAttribute( aNamespaceAttributeName, "CDATA", aValue ); + pNewList->AddAttribute(aNamespaceAttributeName, aValue); } } catch ( SAXException& e ) |