diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 10:22:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 10:22:13 +0100 |
commit | 85bcf0616009853ef57dd019b53fc811b3311be9 (patch) | |
tree | 073f54239bb01645459d9c1711ad4dc8f6f8ccb1 /comphelper/source/officeinstdir | |
parent | 898c4147000edc83598523cfe25d81ecdcfe82c6 (diff) |
comphelper: Use appropriate OUString functions on string constants
Change-Id: Ia09f122d4d968318fc0208b64b9bf7a0bc131f8a
Diffstat (limited to 'comphelper/source/officeinstdir')
-rw-r--r-- | comphelper/source/officeinstdir/officeinstallationdirectories.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx index cb79e9454cf8..044eeaa59287 100644 --- a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx +++ b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx @@ -46,8 +46,7 @@ using namespace comphelper; static bool makeCanonicalFileURL( OUString & rURL ) { - OSL_ENSURE( rURL.matchAsciiL( "file:", sizeof( "file:" ) - 1 , 0 ) , - "File URL expected!" ); + OSL_ENSURE(rURL.startsWithIgnoreAsciiCase("file:"), "File URL expected!"); OUString aNormalizedURL; if ( osl::FileBase::getAbsoluteFileURL( OUString(), |