comphelper: Use appropriate OUString functions on string constants
Change-Id: Ia09f122d4d968318fc0208b64b9bf7a0bc131f8a
This commit is contained in:
@@ -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
|
||||
|
@@ -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(),
|
||||
|
Reference in New Issue
Block a user