diff options
author | Ashish Banerjee <ashish.banerjee10@gmail.com> | 2013-04-03 20:11:54 -0600 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-04-05 08:57:28 +0000 |
commit | e1f6dac6893e0ad9e1b1f03a3b882cf1e9a08d32 (patch) | |
tree | caa0f6e9a40b163b7a375d39228bbc918687b99c /dtrans/source/cnttype/mcnttfactory.cxx | |
parent | 55664c9bd2469d3e493e6f1b67fbb2f96500d492 (diff) |
Replace `compareTo(...) == 0` with ==
Proposed patch for the following issue:
https://bugs.freedesktop.org/show_bug.cgi?id=62096
Change-Id: Ib83a9051ea12c53642f781e5427a6ca728049a7f
Reviewed-on: https://gerrit.libreoffice.org/3198
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'dtrans/source/cnttype/mcnttfactory.cxx')
-rw-r--r-- | dtrans/source/cnttype/mcnttfactory.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dtrans/source/cnttype/mcnttfactory.cxx b/dtrans/source/cnttype/mcnttfactory.cxx index 86eb6179a3dd..ec43fcdbc5d6 100644 --- a/dtrans/source/cnttype/mcnttfactory.cxx +++ b/dtrans/source/cnttype/mcnttfactory.cxx @@ -87,7 +87,7 @@ sal_Bool SAL_CALL CMimeContentTypeFactory::supportsService( const OUString& Serv Sequence < OUString > SupportedServicesNames = MimeContentTypeFactory_getSupportedServiceNames(); for ( sal_Int32 n = SupportedServicesNames.getLength(); n--; ) - if (SupportedServicesNames[n].compareTo(ServiceName) == 0) + if ( SupportedServicesNames[n] == ServiceName ) return sal_True; return sal_False; |