summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/mediadescriptor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/mediadescriptor.cxx')
-rw-r--r--comphelper/source/misc/mediadescriptor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/mediadescriptor.cxx b/comphelper/source/misc/mediadescriptor.cxx
index d86bb0807653..544d4e5c955e 100644
--- a/comphelper/source/misc/mediadescriptor.cxx
+++ b/comphelper/source/misc/mediadescriptor.cxx
@@ -657,7 +657,7 @@ sal_Bool MediaDescriptor::impl_openStreamWithURL( const ::rtl::OUString& sURL, s
// Only file system content provider is able to provide XStream
// so for this content impossibility to create XStream triggers
// switch to readonly mode in case of opening with locking on
- if( bLockFile && aScheme.equalsIgnoreAsciiCaseAscii( "file" ) )
+ if( bLockFile && aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("file")) )
bReadOnly = sal_True;
else
{
@@ -680,7 +680,7 @@ sal_Bool MediaDescriptor::impl_openStreamWithURL( const ::rtl::OUString& sURL, s
try
{
// all the contents except file-URLs should be opened as usual
- if ( bLockFile || !aScheme.equalsIgnoreAsciiCaseAscii( "file" ) )
+ if ( bLockFile || !aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("file")) )
xInputStream = aContent.openStream();
else
xInputStream = aContent.openStreamNoLock();