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 /fpicker | |
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 'fpicker')
-rw-r--r-- | fpicker/source/aqua/SalAquaFilePicker.mm | 2 | ||||
-rw-r--r-- | fpicker/source/aqua/SalAquaFolderPicker.mm | 2 | ||||
-rw-r--r-- | fpicker/source/win32/filepicker/FilePicker.cxx | 2 | ||||
-rw-r--r-- | fpicker/source/win32/filepicker/VistaFilePicker.cxx | 2 | ||||
-rw-r--r-- | fpicker/source/win32/folderpicker/FolderPicker.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm b/fpicker/source/aqua/SalAquaFilePicker.mm index d1a399f84415..e64c4225c5ba 100644 --- a/fpicker/source/aqua/SalAquaFilePicker.mm +++ b/fpicker/source/aqua/SalAquaFilePicker.mm @@ -629,7 +629,7 @@ throw( uno::RuntimeException ) uno::Sequence <rtl::OUString> supportedServicesNames = FilePicker_getSupportedServiceNames(); for( sal_Int32 n = supportedServicesNames.getLength(); n--; ) { - if( supportedServicesNames[n].compareTo( sServiceName ) == 0) { + if( supportedServicesNames[n] == sServiceName ) { retVal = sal_True; break; } diff --git a/fpicker/source/aqua/SalAquaFolderPicker.mm b/fpicker/source/aqua/SalAquaFolderPicker.mm index 8d06b7fb2e80..766f46026ba7 100644 --- a/fpicker/source/aqua/SalAquaFolderPicker.mm +++ b/fpicker/source/aqua/SalAquaFolderPicker.mm @@ -226,7 +226,7 @@ sal_Bool SAL_CALL SalAquaFolderPicker::supportsService( const rtl::OUString& sSe uno::Sequence <rtl::OUString> supportedServicesNames = FolderPicker_getSupportedServiceNames(); for( sal_Int32 n = supportedServicesNames.getLength(); n--; ) { - if( supportedServicesNames[n].compareTo( sServiceName ) == 0) { + if( supportedServicesNames[n] == sServiceName ) { retVal = sal_True; break; } diff --git a/fpicker/source/win32/filepicker/FilePicker.cxx b/fpicker/source/win32/filepicker/FilePicker.cxx index de1f84a156ed..e8514093cb1f 100644 --- a/fpicker/source/win32/filepicker/FilePicker.cxx +++ b/fpicker/source/win32/filepicker/FilePicker.cxx @@ -723,7 +723,7 @@ sal_Bool SAL_CALL CFilePicker::supportsService(const rtl::OUString& ServiceName) uno::Sequence <rtl::OUString> SupportedServicesNames = FilePicker_getSupportedServiceNames(); for (sal_Int32 n = SupportedServicesNames.getLength(); n--;) - if (SupportedServicesNames[n].compareTo(ServiceName) == 0) + if (SupportedServicesNames[n] == ServiceName) return sal_True; return sal_False; diff --git a/fpicker/source/win32/filepicker/VistaFilePicker.cxx b/fpicker/source/win32/filepicker/VistaFilePicker.cxx index 3cb4e3a585e5..ce5165594641 100644 --- a/fpicker/source/win32/filepicker/VistaFilePicker.cxx +++ b/fpicker/source/win32/filepicker/VistaFilePicker.cxx @@ -619,7 +619,7 @@ sal_Bool SAL_CALL VistaFilePicker::supportsService(const ::rtl::OUString& sServi css::uno::Sequence< ::rtl::OUString > lSupportedServicesNames = VistaFilePicker_getSupportedServiceNames(); for (sal_Int32 n = lSupportedServicesNames.getLength(); n--;) - if (lSupportedServicesNames[n].compareTo(sServiceName) == 0) + if (lSupportedServicesNames[n] == sServiceName) return sal_True; return sal_False; diff --git a/fpicker/source/win32/folderpicker/FolderPicker.cxx b/fpicker/source/win32/folderpicker/FolderPicker.cxx index de5f714a0fc3..2b889e39a552 100644 --- a/fpicker/source/win32/folderpicker/FolderPicker.cxx +++ b/fpicker/source/win32/folderpicker/FolderPicker.cxx @@ -160,7 +160,7 @@ sal_Bool SAL_CALL CFolderPicker::supportsService( const OUString& ServiceName ) Sequence < OUString > SupportedServicesNames = FolderPicker_getSupportedServiceNames(); for ( sal_Int32 n = SupportedServicesNames.getLength(); n--; ) - if (SupportedServicesNames[n].compareTo(ServiceName) == 0) + if ( SupportedServicesNames[n] == ServiceName ) return sal_True; return sal_False; |