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 /filter | |
parent | make add_custom_headers better (diff) | |
download | core-f770c5d6bc7fd54f3cd3781d250820b5e86922e7.tar.gz core-f770c5d6bc7fd54f3cd3781d250820b5e86922e7.zip |
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 'filter')
-rw-r--r-- | filter/source/filtertracer/filtertracer.cxx | 2 | ||||
-rw-r--r-- | filter/source/flash/swffilter.cxx | 2 | ||||
-rw-r--r-- | filter/source/msfilter/powerpoint/pptimporter.cxx | 2 | ||||
-rw-r--r-- | filter/source/pdf/pdffilter.cxx | 2 | ||||
-rw-r--r-- | filter/source/pdf/pdfinteract.cxx | 2 | ||||
-rw-r--r-- | filter/source/placeware/filter.cxx | 2 | ||||
-rw-r--r-- | filter/source/xmlfilterdetect/filterdetect.cxx | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/filter/source/filtertracer/filtertracer.cxx b/filter/source/filtertracer/filtertracer.cxx index 5cfa62950805..cfe6d5dfb5ee 100644 --- a/filter/source/filtertracer/filtertracer.cxx +++ b/filter/source/filtertracer/filtertracer.cxx @@ -42,7 +42,7 @@ rtl::OUString FilterTracer_getImplementationName() sal_Bool SAL_CALL FilterTracer_supportsService( const rtl::OUString& ServiceName ) throw( NMSP_UNO::RuntimeException ) { - return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.util.logging.Logger" ) ); + return ServiceName == "com.sun.star.util.logging.Logger"; } SEQ( rtl::OUString ) SAL_CALL FilterTracer_getSupportedServiceNames() throw( NMSP_UNO::RuntimeException ) diff --git a/filter/source/flash/swffilter.cxx b/filter/source/flash/swffilter.cxx index 0f9dbc98b44b..0c8d359f1762 100644 --- a/filter/source/flash/swffilter.cxx +++ b/filter/source/flash/swffilter.cxx @@ -471,7 +471,7 @@ OUString FlashExportFilter_getImplementationName () sal_Bool SAL_CALL FlashExportFilter_supportsService( const OUString& ServiceName ) throw (RuntimeException) { - return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) ); + return ServiceName == SERVICE_NAME; } // ----------------------------------------------------------------------------- diff --git a/filter/source/msfilter/powerpoint/pptimporter.cxx b/filter/source/msfilter/powerpoint/pptimporter.cxx index 713e1d32ff1e..6450b761ba15 100644 --- a/filter/source/msfilter/powerpoint/pptimporter.cxx +++ b/filter/source/msfilter/powerpoint/pptimporter.cxx @@ -45,7 +45,7 @@ NMSP_RTL::OUString PptImporter_getImplementationName() sal_Bool SAL_CALL PptImporter_supportsService( const NMSP_RTL::OUString& ServiceName ) throw( NMSP_UNO::RuntimeException ) { - return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( SERVICE_NAME ) ); + return ServiceName == SERVICE_NAME; } SEQ( NMSP_RTL::OUString ) SAL_CALL PptImporter_getSupportedServiceNames() diff --git a/filter/source/pdf/pdffilter.cxx b/filter/source/pdf/pdffilter.cxx index 51c001f37bf8..a42633c608c5 100644 --- a/filter/source/pdf/pdffilter.cxx +++ b/filter/source/pdf/pdffilter.cxx @@ -224,7 +224,7 @@ OUString PDFFilter_getImplementationName () sal_Bool SAL_CALL PDFFilter_supportsService( const OUString& ServiceName ) throw (RuntimeException) { - return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) ); + return ServiceName == SERVICE_NAME; } // ----------------------------------------------------------------------------- diff --git a/filter/source/pdf/pdfinteract.cxx b/filter/source/pdf/pdfinteract.cxx index acdcab87cb0b..b8adf18861a9 100644 --- a/filter/source/pdf/pdfinteract.cxx +++ b/filter/source/pdf/pdfinteract.cxx @@ -90,7 +90,7 @@ OUString PDFInteractionHandler_getImplementationName () sal_Bool SAL_CALL PDFInteractionHandler_supportsService( const OUString& ServiceName ) throw (RuntimeException) { - return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) ); + return ServiceName == SERVICE_NAME; } // ----------------------------------------------------------------------------- diff --git a/filter/source/placeware/filter.cxx b/filter/source/placeware/filter.cxx index 2c4c6f394834..bba8fd690018 100644 --- a/filter/source/placeware/filter.cxx +++ b/filter/source/placeware/filter.cxx @@ -163,7 +163,7 @@ OUString PlaceWareExportFilter_getImplementationName () sal_Bool SAL_CALL PlaceWareExportFilter_supportsService( const OUString& ServiceName ) throw (RuntimeException) { - return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) ); + return ServiceName == SERVICE_NAME; } // ----------------------------------------------------------------------------- diff --git a/filter/source/xmlfilterdetect/filterdetect.cxx b/filter/source/xmlfilterdetect/filterdetect.cxx index b5189aca4cd8..8060a6b5c03e 100644 --- a/filter/source/xmlfilterdetect/filterdetect.cxx +++ b/filter/source/xmlfilterdetect/filterdetect.cxx @@ -281,7 +281,7 @@ OUString FilterDetect_getImplementationName () sal_Bool SAL_CALL FilterDetect_supportsService( const OUString& ServiceName ) throw (RuntimeException) { - return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME1 ) ); + return ServiceName == SERVICE_NAME1; } Sequence< OUString > SAL_CALL FilterDetect_getSupportedServiceNames( ) throw (RuntimeException) |