summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Hunter <hunteke@earlham.edu>2010-11-09 10:55:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-09 10:55:03 +0000
commit10bfc7d833b174c83aa97a32e6cd738490c82b20 (patch)
tree0eea96dc29f676be4eb15857c1a00661df15dc2f
parent6b7af2b91761f48301e6efbe5569944d46f1a611 (diff)
EasyHack: RTL conversion from createFromAscii
-rw-r--r--basebmp/test/bmpdemo.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/basebmp/test/bmpdemo.cxx b/basebmp/test/bmpdemo.cxx
index 043d165c14d6..160d69ecd532 100644
--- a/basebmp/test/bmpdemo.cxx
+++ b/basebmp/test/bmpdemo.cxx
@@ -975,7 +975,7 @@ class TestWindow : public Dialog
public:
TestWindow() : Dialog( (Window *) NULL )
{
- SetText( rtl::OUString::createFromAscii( "VIGRA test" ) );
+ SetText( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "VIGRA test" )) );
SetSizePixel( Size( 1024, 1024 ) );
EnablePaint( true );
Show();
@@ -1079,11 +1079,9 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
basegfx::B2DPolyPolygon aPoly;
basegfx::tools::importFromSvgD( aPoly,
- ::rtl::OUString::createFromAscii(
- "m0 0 h7 v7 h-7 z" ) );
+ ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "m0 0 h7 v7 h-7 z" )) );
basegfx::tools::importFromSvgD( aPoly,
- ::rtl::OUString::createFromAscii(
- "m2 2 h3 v3 h-3 z" ) );
+ ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "m2 2 h3 v3 h-3 z" )) );
pDevice->fillPolyPolygon(
aPoly,
@@ -1102,8 +1100,7 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
pMask->drawLine( aPt111, aPt222, aCol333, basebmp::DrawMode_PAINT );
- ::rtl::OUString aSvg = ::rtl::OUString::createFromAscii(
- "m 0 0 h5 l5 5 v5 h-5 l-5-5 z" );
+ ::rtl::OUString aSvg( RTL_CONSTASCII_USTRINGPARAM( "m 0 0 h5 l5 5 v5 h-5 l-5-5 z" ));
basegfx::B2DPolyPolygon aPoly;
basegfx::tools::importFromSvgD( aPoly, aSvg );
pMask->clear(basebmp::Color(0xFFFFFFFF));