[Libreoffice-commits] .: stoc/source
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Jun 13 03:45:44 PDT 2011
stoc/source/typeconv/convert.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit bf37bdcff51ced9962ff7e1fae6ed8c386608e4f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Jun 11 00:19:53 2011 +0100
createFromAscii -> RTL_CONSTASCII_USTRINGPARAM
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index 9d07c1f..92ef7f1 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 );
More information about the Libreoffice-commits
mailing list