Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hello,

Here's a patch for testtools

Julien.
(LGPLv3+ / MPL)
commit 454a035958ee250cfc302967d5e936e0c634e746
Author: serval <serval@ilapharm.com>
Date:   Mon Dec 13 21:36:13 2010 +0100

    RTL_CONSTASCII_USTRINGPARAM for testtools

diff --git a/testtools/source/bridgetest/multi.hxx b/testtools/source/bridgetest/multi.hxx
index f2ac065..5b67a4e 100644
--- a/testtools/source/bridgetest/multi.hxx
+++ b/testtools/source/bridgetest/multi.hxx
@@ -59,7 +59,7 @@ public:
 
     virtual rtl::OUString SAL_CALL fn12(rtl::OUString const & arg)
         throw (com::sun::star::uno::RuntimeException)
-    { return rtl::OUString::createFromAscii("12") + arg; }
+    { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("12")) + arg; }
 
     virtual sal_Int32 SAL_CALL fn21(sal_Int32 arg)
         throw (com::sun::star::uno::RuntimeException)
@@ -67,7 +67,7 @@ public:
 
     virtual rtl::OUString SAL_CALL fn22(rtl::OUString const & arg)
         throw (com::sun::star::uno::RuntimeException)
-    { return rtl::OUString::createFromAscii("22") + arg; }
+    { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("22")) + arg; }
 
     virtual double SAL_CALL getatt3()
         throw (com::sun::star::uno::RuntimeException)
@@ -83,7 +83,7 @@ public:
 
     virtual rtl::OUString SAL_CALL fn32(rtl::OUString const & arg)
         throw (com::sun::star::uno::RuntimeException)
-    { return rtl::OUString::createFromAscii("32") + arg; }
+    { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("32")) + arg; }
 
     virtual sal_Int32 SAL_CALL fn33()
         throw (com::sun::star::uno::RuntimeException)
@@ -99,7 +99,7 @@ public:
 
     virtual rtl::OUString SAL_CALL fn62(rtl::OUString const & arg)
         throw (com::sun::star::uno::RuntimeException)
-    { return rtl::OUString::createFromAscii("62") + arg; }
+    { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("62")) + arg; }
 
     virtual sal_Int32 SAL_CALL fn71(sal_Int32 arg)
         throw (com::sun::star::uno::RuntimeException)
@@ -107,7 +107,7 @@ public:
 
     virtual rtl::OUString SAL_CALL fn72(rtl::OUString const & arg)
         throw (com::sun::star::uno::RuntimeException)
-    { return rtl::OUString::createFromAscii("72") + arg; }
+    { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("72")) + arg; }
 
     virtual sal_Int32 SAL_CALL fn73()
         throw (com::sun::star::uno::RuntimeException)

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.