From adc20c3937f3119d39af5a0c8e4a439d8127fe63 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 4 Jun 2014 08:54:40 +0200 Subject: compareToAscii -> equalsAscii convert places using compareToAscii that should be using equalsAscii Change-Id: I97b4da7f6e867c3967b2f65b70d6886f83b4a4e5 --- unotools/source/ucbhelper/ucblockbytes.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unotools') diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index 8beeec966bd4..6bf08cccd209 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -871,8 +871,8 @@ static bool UCBOpenContentSync( return _UCBOpenContentSync( xLockBytes,xContent,rArg,xSink,xInteract,xProgress,xHandler); - if ( (aScheme.compareToAscii( "http" ) != 0) || - (aScheme.compareToAscii( "https" ) != 0) ) + if ( !aScheme.equalsAscii( "http" ) || + !aScheme.equalsAscii( "https" ) ) xLockBytes->SetStreamValid_Impl(); Reference< XPropertiesChangeListener > xListener; @@ -1108,7 +1108,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.compareToAscii("http") != 0 ) + if ( !aScheme.equalsAscii("http") ) xLockBytes->SetStreamValid_Impl(); Reference< XPropertiesChangeListener > xListener = new UcbPropertiesChangeListener_Impl( xLockBytes ); -- cgit