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 | No dynamic module loading on iOS (diff) | |
download | core-932ebc493d54033f13ba51907817a5f7e42255b1.tar.gz core-932ebc493d54033f13ba51907817a5f7e42255b1.zip |
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 ); |