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/qa | |
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/qa')
-rw-r--r-- | sal/qa/rtl_strings/rtl_OString.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/qa/rtl_strings/rtl_OString.cxx b/sal/qa/rtl_strings/rtl_OString.cxx index 1934f0625248..293381cd2a7c 100644 --- a/sal/qa/rtl_strings/rtl_OString.cxx +++ b/sal/qa/rtl_strings/rtl_OString.cxx @@ -1929,7 +1929,7 @@ sal_Bool test_valueOf( const char** resArray, int n, sal_Int16 radix, bRes &= c_rtl_tres_state ( hRtlTestResult, - aStr2.compareTo(aStr1) == 0, + aStr2 == aStr1, (sal_Char*)resArray[i], createName( pMeth, "valueOf", i ) ); @@ -2163,7 +2163,7 @@ sal_Bool SAL_CALL test_rtl_OString_valueOf_Int32_WrongRadix( bRes = c_rtl_tres_state ( hRtlTestResult, - aStr2.compareTo( aStr1 ) == 0, + aStr2 == aStr1, "if radix not valid then radix must be 10", "valueOf(sal_Int32, sal_Int32 radix): radix = -5" ); @@ -2411,7 +2411,7 @@ sal_Bool SAL_CALL test_rtl_OString_valueOf_Int64_WrongRadix( bRes = c_rtl_tres_state ( hRtlTestResult, - aStr2.compareTo(aStr1) == 0, + aStr2 == aStr1, "if radix not valid then radix must be 10", "valueOf(sal_Int64, sal_Int32 radix): radix = -5" ); |