EasyHack: RTL conversion from createFromAscii
This commit is contained in:
parent
6b7af2b917
commit
10bfc7d833
1 changed files with 4 additions and 7 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue