summaryrefslogtreecommitdiff
path: root/framework/source/xml/saxnamespacefilter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/xml/saxnamespacefilter.cxx')
-rw-r--r--framework/source/xml/saxnamespacefilter.cxx16
1 files changed, 3 insertions, 13 deletions
diff --git a/framework/source/xml/saxnamespacefilter.cxx b/framework/source/xml/saxnamespacefilter.cxx
index 47040e63ad..06ba54932b 100644
--- a/framework/source/xml/saxnamespacefilter.cxx
+++ b/framework/source/xml/saxnamespacefilter.cxx
@@ -43,6 +43,7 @@
#include <comphelper/attributelist.hxx>
#include <vcl/svapp.hxx>
+#include <rtl/logfile.hxx>
using namespace ::com::sun::star::xml::sax;
using namespace ::com::sun::star::uno;
@@ -54,7 +55,7 @@ namespace framework{
SaxNamespaceFilter::SaxNamespaceFilter( Reference< XDocumentHandler >& rSax1DocumentHandler ) :
- ThreadHelpBase( &Application::GetSolarMutex() ), OWeakObject(),
+ ThreadHelpBase( &Application::GetSolarMutex() ),
m_xLocator( 0 ),
xDocumentHandler( rSax1DocumentHandler ),
m_nDepth( 0 )
@@ -65,17 +66,6 @@ SaxNamespaceFilter::~SaxNamespaceFilter()
{
}
-Any SAL_CALL SaxNamespaceFilter::queryInterface( const Type & rType ) throw( RuntimeException )
-{
- Any a = ::cppu::queryInterface(
- rType ,
- SAL_STATIC_CAST( XDocumentHandler*, this ));
- if ( a.hasValue() )
- return a;
-
- return OWeakObject::queryInterface( rType );
-}
-
// XDocumentHandler
void SAL_CALL SaxNamespaceFilter::startDocument(void)
throw ( SAXException, RuntimeException )
@@ -92,7 +82,7 @@ void SAL_CALL SaxNamespaceFilter::startElement(
throw( SAXException, RuntimeException )
{
XMLNamespaces aXMLNamespaces;
- if ( m_aNamespaceStack.size() > 0 )
+ if ( !m_aNamespaceStack.empty() )
aXMLNamespaces = m_aNamespaceStack.top();
::comphelper::AttributeList* pNewList = new ::comphelper::AttributeList();