diff options
author | Szabolcs Dezsi <dezsiszabi@hotmail.com> | 2012-04-06 12:25:24 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-04-06 12:48:32 +0200 |
commit | f770c5d6bc7fd54f3cd3781d250820b5e86922e7 (patch) | |
tree | 70b2267c1eaa4727e769f463bfd99f1e94a808df /sw | |
parent | 0168b4e6ec645ab3706a1c6104b2aba4a7002536 (diff) |
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:
find . -name "*.cxx" -exec sed -i 's/\( *\)return \([^()]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *);/\1return \2 == \3;/' \{\} \;
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unochart.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx index 6238767f910a..76001036c10e 100644 --- a/sw/source/core/unocore/unochart.cxx +++ b/sw/source/core/unocore/unochart.cxx @@ -1528,7 +1528,7 @@ sal_Bool SAL_CALL SwChartDataProvider::supportsService( throw (uno::RuntimeException) { SolarMutexGuard aGuard; - return rServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( SN_DATA_PROVIDER ) ); + return rServiceName == SN_DATA_PROVIDER; } uno::Sequence< OUString > SAL_CALL SwChartDataProvider::getSupportedServiceNames( ) @@ -1911,7 +1911,7 @@ sal_Bool SAL_CALL SwChartDataSource::supportsService( throw (uno::RuntimeException) { SolarMutexGuard aGuard; - return rServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( SN_DATA_SOURCE ) ); + return rServiceName == SN_DATA_SOURCE; } uno::Sequence< OUString > SAL_CALL SwChartDataSource::getSupportedServiceNames( ) @@ -2376,7 +2376,7 @@ sal_Bool SAL_CALL SwChartDataSequence::supportsService( const OUString& rServiceName ) throw (uno::RuntimeException) { - return rServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( SN_DATA_SEQUENCE ) ); + return rServiceName == SN_DATA_SEQUENCE; } uno::Sequence< OUString > SAL_CALL SwChartDataSequence::getSupportedServiceNames( ) @@ -2859,7 +2859,7 @@ sal_Bool SAL_CALL SwChartLabeledDataSequence::supportsService( const OUString& rServiceName ) throw (uno::RuntimeException) { - return rServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( SN_LABELED_DATA_SEQUENCE ) ); + return rServiceName == SN_LABELED_DATA_SEQUENCE; } uno::Sequence< OUString > SAL_CALL SwChartLabeledDataSequence::getSupportedServiceNames( ) |