[Libreoffice-commits] .: codemaker/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Jan 4 09:24:07 PST 2011


 codemaker/source/cppumaker/cpputype.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cd3a6db37767713c504c565afd428cc16ea4816e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jan 4 13:39:08 2011 +0000

    use RTL_CONSTASCII_USTRINGPARAM

diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx
index 20359b0..f31384a 100644
--- a/codemaker/source/cppumaker/cpputype.cxx
+++ b/codemaker/source/cppumaker/cpputype.cxx
@@ -1201,7 +1201,7 @@ void CppuType::dumpConstantValue(FileStream& o, sal_uInt16 index)
             {
                 ::rtl::OUString aUStr(constValue.m_value.aString);
                 ::rtl::OString aStr = ::rtl::OUStringToOString(aUStr, RTL_TEXTENCODING_ASCII_US);
-                o << "::rtl::OUString::createFromAscii(\"" << aStr.getStr() << "\")";
+                o << "::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(\"" << aStr.getStr() << "\"))";
             }
             break;
     }


More information about the Libreoffice-commits mailing list