diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-17 11:11:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-17 11:11:14 +0000 |
commit | d3073bef2f2502469fe5bcc5a233d6170eea4ab6 (patch) | |
tree | 3d670ee680f5982a03ed9d54c116e2410e559f66 /framework/source/uiconfiguration | |
parent | f5334930664b89fb3c68dd0b5f7d49d51dcce055 (diff) |
equalsAsciiL faster than equalsAscii
Diffstat (limited to 'framework/source/uiconfiguration')
-rw-r--r-- | framework/source/uiconfiguration/moduleuicfgsupplier.cxx | 2 | ||||
-rw-r--r-- | framework/source/uiconfiguration/windowstateconfiguration.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uiconfiguration/moduleuicfgsupplier.cxx b/framework/source/uiconfiguration/moduleuicfgsupplier.cxx index c32c847c5acf..608214d1d656 100644 --- a/framework/source/uiconfiguration/moduleuicfgsupplier.cxx +++ b/framework/source/uiconfiguration/moduleuicfgsupplier.cxx @@ -211,7 +211,7 @@ throw ( NoSuchElementException, RuntimeException) xCont->getByName(ModuleIdentifier) >>= lProps; for (sal_Int32 i=0; i<lProps.getLength(); ++i) { - if (lProps[i].Name.equalsAscii("ooSetupFactoryShortName")) + if (lProps[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ooSetupFactoryShortName"))) { lProps[i].Value >>= sShort; break; diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx index 0adf1f1c8417..249c833c0f90 100644 --- a/framework/source/uiconfiguration/windowstateconfiguration.cxx +++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx @@ -1393,7 +1393,7 @@ WindowStateConfiguration::WindowStateConfiguration( const Reference< XMultiServi ::rtl::OUString aWindowStateFileStr; for ( sal_Int32 y = 0; y < aSeq.getLength(); y++ ) { - if ( aSeq[y].Name.equalsAscii("ooSetupFactoryWindowStateConfigRef") ) + if ( aSeq[y].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ooSetupFactoryWindowStateConfigRef")) ) { aSeq[y].Value >>= aWindowStateFileStr; break; |