summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-08 12:37:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-08 13:04:13 +0100
commit6583305dd70e31ae745d709b8cda8c7b68219735 (patch)
treee50a38a329c161b3d3a99c11fa49a53a3dfb8330 /framework
parenta3c0df8222a20860f64b06c956c213131b79a73b (diff)
simplify compareTo (now correct)
Change-Id: Ia4fd2f54d0bda71d472f46949500c0b23ff8e1b7 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/fwe/xml/saxnamespacefilter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/fwe/xml/saxnamespacefilter.cxx b/framework/source/fwe/xml/saxnamespacefilter.cxx
index 3a9e25649c37..165e53763c58 100644
--- a/framework/source/fwe/xml/saxnamespacefilter.cxx
+++ b/framework/source/fwe/xml/saxnamespacefilter.cxx
@@ -79,7 +79,7 @@ void SAL_CALL SaxNamespaceFilter::startElement(
for ( sal_Int16 i=0; i< xAttribs->getLength(); i++ )
{
OUString aName = xAttribs->getNameByIndex( i );
- if ( aName.compareTo( m_aXMLAttributeNamespace, m_aXMLAttributeNamespace.getLength() ) == 0 )
+ if ( aName.startsWith( m_aXMLAttributeNamespace ) )
aXMLNamespaces.addNamespace( aName, xAttribs->getValueByIndex( i ));
else
aAttributeIndexes.push_back( i );