summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-05 14:39:55 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 12:58:13 +0200
commitfcd1637d5101b9142e6808edfb77b01122857901 (patch)
tree5fd09f97de80cf2a9481bd55a798015db35f1d0c /testtools
parentef90021abe3735fba57145598fd7c3d359d2718e (diff)
convert OUString compareToAscii == 0 to equalsAscii
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
Diffstat (limited to 'testtools')
-rw-r--r--testtools/source/performance/ubtest.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/testtools/source/performance/ubtest.cxx b/testtools/source/performance/ubtest.cxx
index f08a0f92d909..96b895ce82fe 100644
--- a/testtools/source/performance/ubtest.cxx
+++ b/testtools/source/performance/ubtest.cxx
@@ -978,11 +978,11 @@ sal_Int32 TestImpl::run( const Sequence< OUString > & rArgs )
OUString aLogStr( extractParam( rArgs, OUString("log") ) );
if (aLogStr.getLength())
{
- if (aLogStr.compareToAscii( "stderr" ) == 0)
+ if (aLogStr.equalsAscii( "stderr" ) )
{
stream = stderr;
}
- else if (aLogStr.compareToAscii( "stdout" ) == 0)
+ else if (aLogStr.equalsAscii( "stdout" ) )
{
stream = stdout;
}