compareTo -> equals

convert OUString::compareTo usage to equals to startsWith where it
is more appropriate

Change-Id: I6f5b5b7942429c0099ad082ba4984fd18e422121
This commit is contained in:
Noel Grandin
2014-06-04 11:43:58 +02:00
parent adc20c3937
commit cc25f70ef1
36 changed files with 133 additions and 140 deletions

View File

@@ -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 )
{