diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-11 00:19:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-13 11:44:37 +0100 |
commit | 932ebc493d54033f13ba51907817a5f7e42255b1 (patch) | |
tree | dd6a3cca6aeaed13e5f3549d225b791d3e014694 /stoc | |
parent | bb0f5c935993489902392e7eb22f2d77b389f14d (diff) |
createFromAscii -> RTL_CONSTASCII_USTRINGPARAM
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/typeconv/convert.cxx | 4 |
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 ); |