diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 12:24:35 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 12:24:35 +0100 |
commit | 6088eb600bf68b65b4fe6eb89224d3cf66361cbf (patch) | |
tree | 9820021814f253b31c9970082854b828790f8257 /unotools/source/ucbhelper | |
parent | 55cd108d48f1554d5acef02662d7e93b18b38e34 (diff) |
unotools: Use appropriate OUString functions on string constants
Change-Id: I14d3a3187b8528e3ff9743245b869773c2eb5e98
Diffstat (limited to 'unotools/source/ucbhelper')
-rw-r--r-- | unotools/source/ucbhelper/tempfile.cxx | 2 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx index 7665b3d81432..3ad492e24fba 100644 --- a/unotools/source/ucbhelper/tempfile.cxx +++ b/unotools/source/ucbhelper/tempfile.cxx @@ -58,7 +58,7 @@ OUString getParentName( const OUString& aFileName ) if( aParent.endsWith(":") && aParent.getLength() == 6 ) aParent += "/"; - if( aParent.equalsAscii( "file://" ) ) + if( aParent.equalsIgnoreAsciiCase( "file://" ) ) aParent = "file:///"; return aParent; diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index 0ec9f4759dbf..42bce6ab4f94 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -875,8 +875,8 @@ static bool UCBOpenContentSync( return _UCBOpenContentSync( xLockBytes,xContent,rArg,xSink,xInteract,xProgress,xHandler); - if ( !aScheme.equalsAscii( "http" ) && - !aScheme.equalsAscii( "https" ) ) + if ( !aScheme.equalsIgnoreAsciiCase( "http" ) && + !aScheme.equalsIgnoreAsciiCase( "https" ) ) xLockBytes->SetStreamValid_Impl(); Reference< XPropertiesChangeListener > xListener; @@ -1112,7 +1112,7 @@ static bool _UCBOpenContentSync( // http protocol must be handled in a special way: during the opening process the input stream may change // only the last inputstream after notifying the document headers is valid - if ( !aScheme.equalsAscii("http") ) + if ( !aScheme.equalsIgnoreAsciiCase("http") ) xLockBytes->SetStreamValid_Impl(); Reference< XPropertiesChangeListener > xListener = new UcbPropertiesChangeListener_Impl( xLockBytes ); |