diff options
author | Sameer Deshmukh <sameer.deshmukh93@gmail.com> | 2013-04-20 23:35:23 +0530 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-04-22 07:38:00 +0000 |
commit | dd47994722eaead16099145e593fbf878072d52b (patch) | |
tree | b2395abb94f6247513873cb822b51f1ee4ff6ed2 /sal/inc | |
parent | ca54015d7ea10f5648bccb2adfb7a321747e70f9 (diff) |
fdo#62096: Replaced some compareTo with ==
Change-Id: I1151dafcef91abdb2ce08abe3547a49fe3f4a67c
Reviewed-on: https://gerrit.libreoffice.org/3509
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sal/inc')
-rw-r--r-- | sal/inc/rtl/string.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx index e3d5afbc895a..815126284aaa 100644 --- a/sal/inc/rtl/string.hxx +++ b/sal/inc/rtl/string.hxx @@ -782,25 +782,25 @@ public: template< typename T > friend typename internal::CharPtrDetector< T, bool >::Type operator==( const OString& rStr1, const T& value ) SAL_THROW(()) { - return rStr1.compareTo( value ) == 0; + return (rStr1 == value); } template< typename T > friend typename internal::NonConstCharArrayDetector< T, bool >::Type operator==( const OString& rStr1, T& value ) SAL_THROW(()) { - return rStr1.compareTo( value ) == 0; + return (rStr1 == value); } template< typename T > friend typename internal::CharPtrDetector< T, bool >::Type operator==( const T& value, const OString& rStr2 ) SAL_THROW(()) { - return rStr2.compareTo( value ) == 0; + return (rStr2 == value); } template< typename T > friend typename internal::NonConstCharArrayDetector< T, bool >::Type operator==( T& value, const OString& rStr2 ) SAL_THROW(()) { - return rStr2.compareTo( value ) == 0; + return (rStr2 == value); } /** |