diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-21 14:27:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-22 08:07:18 +0200 |
commit | 071c3f3e93c4c00cf57ce3c382325cd717fed511 (patch) | |
tree | e33a2586b719137ba2521675704562673e1d5168 /stoc | |
parent | 2241fd5302c1ec83c8cbaa2422a477628a569aab (diff) |
remove unnecessary use of OUString constructor in equalsIgnoreAsciiCase
Convert code like:
sType.equalsIgnoreAsciiCase(OUString("VIEW"));
to:
sType.equalsIgnoreAsciiCase("VIEW");
Change-Id: I6fb47e6a83b561c7e5a25da76b63606a3174858d
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/typeconv/convert.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx index 57bdff8b933e..b0c01c34e35d 100644 --- a/stoc/source/typeconv/convert.cxx +++ b/stoc/source/typeconv/convert.cxx @@ -751,12 +751,12 @@ Any TypeConverter_Impl::convertToSimpleType( const Any& rVal, TypeClass aDestina case TypeClass_STRING: { const OUString & aStr = *(const OUString *)rVal.getValue(); - if ( aStr == "0" || aStr.equalsIgnoreAsciiCase( OUString("false") )) + if ( aStr == "0" || aStr.equalsIgnoreAsciiCase( "false" )) { sal_Bool bFalse = sal_False; aRet.setValue( &bFalse, getCppuBooleanType() ); } - else if ( aStr == "1" || aStr.equalsIgnoreAsciiCase( OUString("true") )) + else if ( aStr == "1" || aStr.equalsIgnoreAsciiCase( "true" )) { sal_Bool bTrue = sal_True; aRet.setValue( &bTrue, getCppuBooleanType() ); |