compareTo -> equals
convert OUString::compareTo usage to equals to startsWith where it is more appropriate Change-Id: I6f5b5b7942429c0099ad082ba4984fd18e422121
This commit is contained in:
@@ -47,7 +47,7 @@ void XMLNamespaces::addNamespace( const OUString& aName, const OUString& aValue
|
||||
sal_Int32 nXMLNamespaceLength = m_aXMLAttributeNamespace.getLength();
|
||||
|
||||
// delete preceding "xmlns"
|
||||
if ( aNamespaceName.compareTo( m_aXMLAttributeNamespace, nXMLNamespaceLength ) == 0 )
|
||||
if ( aNamespaceName.startsWith( m_aXMLAttributeNamespace ) )
|
||||
{
|
||||
if ( aNamespaceName.getLength() == nXMLNamespaceLength )
|
||||
{
|
||||
|
Reference in New Issue
Block a user