From f770c5d6bc7fd54f3cd3781d250820b5e86922e7 Mon Sep 17 00:00:00 2001 From: Szabolcs Dezsi Date: Fri, 6 Apr 2012 12:25:24 +0200 Subject: Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)return \([^()]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *);/\1return \2 == \3;/' \{\} \; --- sdext/source/minimizer/pppoptimizer.cxx | 2 +- sdext/source/minimizer/pppoptimizerdialog.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sdext') diff --git a/sdext/source/minimizer/pppoptimizer.cxx b/sdext/source/minimizer/pppoptimizer.cxx index 13bf953d25b8..ae6f5d7d504c 100644 --- a/sdext/source/minimizer/pppoptimizer.cxx +++ b/sdext/source/minimizer/pppoptimizer.cxx @@ -86,7 +86,7 @@ OUString SAL_CALL PPPOptimizer::getImplementationName() sal_Bool SAL_CALL PPPOptimizer::supportsService( const OUString& rServiceName ) throw ( RuntimeException ) { - return rServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( SERVICE_NAME ) ); + return rServiceName == SERVICE_NAME; } Sequence< OUString > SAL_CALL PPPOptimizer::getSupportedServiceNames() diff --git a/sdext/source/minimizer/pppoptimizerdialog.cxx b/sdext/source/minimizer/pppoptimizerdialog.cxx index 3bff359ae27e..b074647334a5 100644 --- a/sdext/source/minimizer/pppoptimizerdialog.cxx +++ b/sdext/source/minimizer/pppoptimizerdialog.cxx @@ -84,7 +84,7 @@ OUString SAL_CALL PPPOptimizerDialog::getImplementationName() sal_Bool SAL_CALL PPPOptimizerDialog::supportsService( const OUString& ServiceName ) throw ( RuntimeException ) { - return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( SERVICE_NAME ) ); + return ServiceName == SERVICE_NAME; } Sequence< OUString > SAL_CALL PPPOptimizerDialog::getSupportedServiceNames() -- cgit