diff options
author | Prashant Pandey <prashant3.yishu@gmail.com> | 2013-04-10 05:53:22 +0530 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-04-10 10:09:56 +0200 |
commit | 8398d5d9ac0f169ee7a045f6677919c79a5cbe0f (patch) | |
tree | 17eeb98c2bc3b84e02afb45da7fe1902edba1369 /shell | |
parent | a6475acf4522e8a20ec3fcd200664d9e6cd22a0b (diff) |
fdo#62096: Replaced some OUString 'compareTo' with '=='
Change-Id: I1d095cf5640595789f4ae99f1b0679be88b0baa9
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/cmdmail/cmdmailsuppl.cxx | 2 | ||||
-rw-r--r-- | shell/source/unix/exec/shellexec.cxx | 2 | ||||
-rw-r--r-- | shell/source/win32/SysShExec.cxx | 2 | ||||
-rw-r--r-- | shell/source/win32/simplemail/smplmailsuppl.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/shell/source/cmdmail/cmdmailsuppl.cxx b/shell/source/cmdmail/cmdmailsuppl.cxx index 40c19f9cd278..81a322e51b10 100644 --- a/shell/source/cmdmail/cmdmailsuppl.cxx +++ b/shell/source/cmdmail/cmdmailsuppl.cxx @@ -272,7 +272,7 @@ sal_Bool SAL_CALL CmdMailSuppl::supportsService( const OUString& ServiceName ) Sequence < OUString > SupportedServicesNames = Component_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/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx index dc1192cdb0f9..6fe1c1e59e6b 100644 --- a/shell/source/unix/exec/shellexec.cxx +++ b/shell/source/unix/exec/shellexec.cxx @@ -284,7 +284,7 @@ sal_Bool SAL_CALL ShellExec::supportsService( const OUString& ServiceName ) Sequence < OUString > SupportedServicesNames = ShellExec_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/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx index 1279dafa2c19..7aaaec790795 100644 --- a/shell/source/win32/SysShExec.cxx +++ b/shell/source/win32/SysShExec.cxx @@ -361,7 +361,7 @@ sal_Bool SAL_CALL CSysShExec::supportsService( const OUString& ServiceName ) Sequence < OUString > SupportedServicesNames = SysShExec_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/shell/source/win32/simplemail/smplmailsuppl.cxx b/shell/source/win32/simplemail/smplmailsuppl.cxx index 76ba6c0dabc4..610699459822 100644 --- a/shell/source/win32/simplemail/smplmailsuppl.cxx +++ b/shell/source/win32/simplemail/smplmailsuppl.cxx @@ -82,7 +82,7 @@ sal_Bool SAL_CALL CSmplMailSuppl::supportsService(const OUString& ServiceName) Sequence <OUString> SupportedServicesNames = Component_getSupportedServiceNames(); for (sal_Int32 n = SupportedServicesNames.getLength(); n--;) - if (SupportedServicesNames[n].compareTo(ServiceName) == 0) + if ( SupportedServicesNames[n] == ServiceName ) return sal_True; return sal_False; |