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 | |
parent | 898c4147000edc83598523cfe25d81ecdcfe82c6 (diff) |
comphelper: Use appropriate OUString functions on string constants
Change-Id: Ia09f122d4d968318fc0208b64b9bf7a0bc131f8a
-rw-r--r-- | comphelper/source/misc/documentinfo.cxx | 2 | ||||
-rw-r--r-- | comphelper/source/officeinstdir/officeinstallationdirectories.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/comphelper/source/misc/documentinfo.cxx b/comphelper/source/misc/documentinfo.cxx index 4ddf1f2871c3..6e72b7335068 100644 --- a/comphelper/source/misc/documentinfo.cxx +++ b/comphelper/source/misc/documentinfo.cxx @@ -95,7 +95,7 @@ namespace comphelper { // work around a problem with embedded objects, which sometimes return // private:object as URL sDocURL = _rxDocument->getURL(); - if ( sDocURL.matchAsciiL( "private:", 8 ) ) + if ( sDocURL.startsWithIgnoreAsciiCase( "private:" ) ) sDocURL.clear(); // 2. if the document is not saved, yet, check the frame title 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(), |