diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-09 22:47:20 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-03-11 11:07:09 +0100 |
commit | 937b63af3322f7f8b5e869b2c7431a2deaec3113 (patch) | |
tree | a832f6672188551a5be9538a02fb80d6e3fc8497 /sw | |
parent | fdo#60701: Properly quote shell parameter expansions (diff) | |
download | core-937b63af3322f7f8b5e869b2c7431a2deaec3113.tar.gz core-937b63af3322f7f8b5e869b2c7431a2deaec3113.zip |
use startsWith() instead of compareToAscii()
brain damage...
Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/xml/xmlimpit.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/uno/unotxdoc.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/xml/xmlimpit.cxx b/sw/source/filter/xml/xmlimpit.cxx index 11343bbda37a..22878e325e37 100644 --- a/sw/source/filter/xml/xmlimpit.cxx +++ b/sw/source/filter/xml/xmlimpit.cxx @@ -345,7 +345,7 @@ bool SvXMLImportItemMapper::PutXMLValue( pShadow->SetLocation( SVX_SHADOW_NONE ); bOk = true; } - else if( !bColorFound && aToken.compareToAscii( "#", 1 ) == 0 ) + else if( !bColorFound && aToken.startsWith("#") ) { sal_Int32 nColor(0); bOk = ::sax::Converter::convertColor( nColor, aToken ); diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index dc6d71cd95c0..a26ab161b5b2 100644 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -1646,7 +1646,7 @@ Reference< XInterface > SwXTextDocument::createInstance(const OUString& rServic } else { - if( rServiceName.compareToAscii( "com.sun.star.", 13 ) == 0 ) + if( rServiceName.startsWith("com.sun.star.") ) { sal_Int32 nIndex = COM_SUN_STAR__DRAWING_LENGTH; OUString sCategory = rServiceName.getToken( 0, '.', nIndex ); |