diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-03-19 14:44:01 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-19 14:45:53 +0100 |
commit | a2d33e2d4cda5e2c4217403bfe94ec0b89d47202 (patch) | |
tree | caf1774ad71a2d5be6155ecbc70da8f1b6370a85 /unotools | |
parent | 61e0ce089d2cff59c4144c05263cf6e83a92fd76 (diff) |
compareToAscii(RTL_CONSTASCII_STRINGPARAM(s)) != compareTo(s)
...broken with 407b51db1831bb2cf21def88241323e35c612005 "Remove
RTL_CONSTASCII_STRINGPARAM (unotools)."
Change-Id: Id810c157a6e10380d28e4d6e85f908dc79cf0057
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/lingucfg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx index e665ccd9d908..f0e8d131188f 100644 --- a/unotools/source/config/lingucfg.cxx +++ b/unotools/source/config/lingucfg.cxx @@ -938,7 +938,7 @@ static bool lcl_GetFileUrlFromOrigin( if (!rOrigin.isEmpty()) { OUString aURL( rOrigin ); - if ( aURL.compareTo( EXPAND_PROTOCOL ) == 0 ) + if ( aURL.startsWith( EXPAND_PROTOCOL ) ) { // cut protocol OUString aMacro( aURL.copy( sizeof ( EXPAND_PROTOCOL ) -1 ) ); @@ -949,7 +949,7 @@ static bool lcl_GetFileUrlFromOrigin( comphelper::getProcessComponentContext() )->expandMacros( aMacro ); - bool bIsFileUrl = aURL.compareTo( FILE_PROTOCOL ) == 0; + bool bIsFileUrl = aURL.startsWith( FILE_PROTOCOL ); if (bIsFileUrl) { rFileUrl = aURL; |