summaryrefslogtreecommitdiff
path: root/testtools/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-05 11:06:18 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 12:58:12 +0200
commit0a9ef5a18e148c7a5c9a088e153a7873d1564841 (patch)
tree3c3bc21e7ee4f836a1d056695175e0b1a91eda26 /testtools/source
parent7944301424aac0943e4ecc0410f495b210ad3b79 (diff)
convert OUString 0==compareToAscii to equalsAscii
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
Diffstat (limited to 'testtools/source')
-rw-r--r--testtools/source/bridgetest/bridgetest.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx
index ef5ee55b05cc..a82bfc28f795 100644
--- a/testtools/source/bridgetest/bridgetest.cxx
+++ b/testtools/source/bridgetest/bridgetest.cxx
@@ -969,7 +969,7 @@ static sal_Bool raiseException( const Reference< XBridgeTest > & xLBT )
if (rExc.ArgumentPosition == 5 &&
#if OSL_DEBUG_LEVEL == 0
// java stack traces trash Message
- rExc.Message.compareToAscii( STRING_TEST_CONSTANT ) == 0 &&
+ rExc.Message.equalsAscii( STRING_TEST_CONSTANT ) &&
#endif
rExc.Context == xLBT->getInterface())
{
@@ -996,7 +996,7 @@ static sal_Bool raiseException( const Reference< XBridgeTest > & xLBT )
if (rExc.Context == xLBT->getInterface()
#if OSL_DEBUG_LEVEL == 0
// java stack traces trash Message
- && rExc.Message.compareToAscii( STRING_TEST_CONSTANT ) == 0
+ && rExc.Message.equalsAscii( STRING_TEST_CONSTANT )
#endif
)
{
@@ -1016,7 +1016,7 @@ static sal_Bool raiseException( const Reference< XBridgeTest > & xLBT )
if (rExc.Context == xLBT->getInterface()
#if OSL_DEBUG_LEVEL == 0
// java stack traces trash Message
- && rExc.Message.compareToAscii( STRING_TEST_CONSTANT ) == 0
+ && rExc.Message.equalsAscii( STRING_TEST_CONSTANT )
#endif
)
{
@@ -1157,7 +1157,7 @@ sal_Int32 TestBridgeImpl::run( const Sequence< OUString > & rArgs )
Reference< XInterface > xOriginal;
bool remote;
sal_Int32 i;
- if( rArgs.getLength() > 1 && 0 == rArgs[0].compareToAscii( "-u" ) )
+ if( rArgs.getLength() > 1 && rArgs[0].equalsAscii( "-u" ) )
{
remote = true;
i = 2;