[Libreoffice-commits] .: basegfx/source basegfx/test

Gert Faller gfaller at kemper.freedesktop.org
Tue Nov 23 09:57:03 PST 2010


 basegfx/source/tools/canvastools.cxx |    4 ++--
 basegfx/test/basegfx2d.cxx           |   16 ++++++++--------
 2 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 4a17f69eeb142f7f135cfbcb0f2130c7d09b687f
Author: Gert Faller <gertfaller at aliceadsl.fr>
Date:   Tue Nov 23 18:54:05 2010 +0100

    RTL_CONSTASCII_USTRINGPARAM in libs-gui 12

diff --git a/basegfx/source/tools/canvastools.cxx b/basegfx/source/tools/canvastools.cxx
index c82b13d..90e3bd0 100644
--- a/basegfx/source/tools/canvastools.cxx
+++ b/basegfx/source/tools/canvastools.cxx
@@ -331,9 +331,9 @@ namespace basegfx
                     if( !xLinePoly.is() )
                     {
                         throw lang::IllegalArgumentException(
-                            ::rtl::OUString::createFromAscii(
+                            ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                     "basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(): Invalid input"
-                                    "poly-polygon, cannot retrieve vertex data"), 
+                                    "poly-polygon, cannot retrieve vertex data")),
                             uno::Reference< uno::XInterface >(),
                             0 );
                     }
diff --git a/basegfx/test/basegfx2d.cxx b/basegfx/test/basegfx2d.cxx
index 93c8392..af6b021 100644
--- a/basegfx/test/basegfx2d.cxx
+++ b/basegfx/test/basegfx2d.cxx
@@ -74,17 +74,17 @@ public:
     void setUp()
     {
         // simple rectangle
-        aPath0 = ::rtl::OUString::createFromAscii(
-            "M 10 10-10 10-10-10 10-10Z" );
+        aPath0 = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+            "M 10 10-10 10-10-10 10-10Z" ));
 
         // simple bezier polygon
-        aPath1 = ::rtl::OUString::createFromAscii(
+        aPath1 = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
             "m11430 0c-8890 3810 5715 6985 5715 6985 "
             "0 0-17145-1905-17145-1905 0 0 22860-10160 "
-            "16510 6350-6350 16510-3810-11430-3810-11430z" );
+            "16510 6350-6350 16510-3810-11430-3810-11430z" ));
 
         // '@' as a bezier polygon
-        aPath2 = ::rtl::OUString::createFromAscii(
+        aPath2 = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
             "m1917 1114c-89-189-233-284-430-284-167 "
             "0-306 91-419 273-113 182-170 370-170 564 "
             "0 145 33 259 98 342 65 84 150 126 257 126 "
@@ -107,10 +107,10 @@ public:
             "-215-201-487-301-816-301-395 0-715 124-960 "
             "373-245 249-368 569-368 958 0 385 119 685 "
             "357 900 237 216 557 324 958 325 189-1 389-27 "
-            "600-77 211-52 378-110 503-174 27 70 54 140 81 210z" );
+            "600-77 211-52 378-110 503-174 27 70 54 140 81 210z" ));
 
         // first part of 'Hello World' as a line polygon
-        aPath3 = ::rtl::OUString::createFromAscii(
+        aPath3 = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
             "m1598 125h306v2334h-306v-1105h-1293v1105h-305v"
             "-2334h305v973h1293zm2159 1015 78-44 85 235-91 "
             "47-91 40-90 34-90 29-89 21-88 16-88 10-88 3-102"
@@ -142,7 +142,7 @@ public:
             "-26-29-28-28-30-26-32-25-32-23-35-21-35-38-74-30-80"
             "-24-85-17-89-11-95-3-100 3-101 11-95 17-90 24-85 30"
             "-79 38-75 21-35 23-35 25-32 26-32 28-30 29-28 30-26 "
-            "31-24 33-22 34-20 35-18 36-16 37-15 39-12 40-11z" );
+            "31-24 33-22 34-20 35-18 36-16 37-15 39-12 40-11z" ));
     }
 
     void tearDown()


More information about the Libreoffice-commits mailing list