summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stoc/source/typeconv/convert.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index 9cb7ecea82b4..66f20480696f 100644
--- a/stoc/source/typeconv/convert.cxx
+++ b/stoc/source/typeconv/convert.cxx
@@ -882,7 +882,9 @@ Any TypeConverter_Impl::convertToSimpleType( const Any& rVal, TypeClass aDestina
}
case TypeClass_BOOLEAN:
- aRet <<= OUString::createFromAscii( (*(sal_Bool *)rVal.getValue() ? "true" : "false") );
+ aRet <<= (*(sal_Bool *)rVal.getValue()) ?
+ OUString(RTL_CONSTASCII_USTRINGPARAM("true")) :
+ OUString(RTL_CONSTASCII_USTRINGPARAM("false"));
break;
case TypeClass_CHAR:
aRet <<= OUString( (sal_Unicode *)rVal.getValue(), 1 );