Kaydet (Commit) 597faa10 authored tarafından Kevin Hunter's avatar Kevin Hunter Kaydeden (comit) Thorsten Behrens

EasyHack: RTL macro converted from createFromAscii

üst 10bfc7d8
...@@ -54,9 +54,9 @@ namespace canvas ...@@ -54,9 +54,9 @@ namespace canvas
uno::Sequence<rtl::OUString> ParametricPolyPolygon::getAvailableServiceNames() uno::Sequence<rtl::OUString> ParametricPolyPolygon::getAvailableServiceNames()
{ {
uno::Sequence<rtl::OUString> aRet(3); uno::Sequence<rtl::OUString> aRet(3);
aRet[0] = rtl::OUString::createFromAscii("LinearGradient"); aRet[0] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LinearGradient" ));
aRet[1] = rtl::OUString::createFromAscii("EllipticalGradient"); aRet[1] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "EllipticalGradient" ));
aRet[2] = rtl::OUString::createFromAscii("RectangularGradient"); aRet[2] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "RectangularGradient" ));
return aRet; return aRet;
} }
......
...@@ -40,9 +40,9 @@ namespace canvas ...@@ -40,9 +40,9 @@ namespace canvas
void throwUnknown( const ::rtl::OUString& aPropertyName ) void throwUnknown( const ::rtl::OUString& aPropertyName )
{ {
throw beans::UnknownPropertyException( throw beans::UnknownPropertyException(
::rtl::OUString::createFromAscii("PropertySetHelper: property ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PropertySetHelper: property " )) +
aPropertyName + aPropertyName +
::rtl::OUString::createFromAscii(" not found."), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not found." )),
uno::Reference< uno::XInterface >() uno::Reference< uno::XInterface >()
); );
} }
...@@ -50,9 +50,9 @@ namespace canvas ...@@ -50,9 +50,9 @@ namespace canvas
void throwVeto( const ::rtl::OUString& aPropertyName ) void throwVeto( const ::rtl::OUString& aPropertyName )
{ {
throw beans::PropertyVetoException( throw beans::PropertyVetoException(
::rtl::OUString::createFromAscii("PropertySetHelper: property ") + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PropertySetHelper: property " )) +
aPropertyName + aPropertyName +
::rtl::OUString::createFromAscii(" access was vetoed."), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " access was vetoed." )),
uno::Reference< uno::XInterface >() ); uno::Reference< uno::XInterface >() );
} }
......
...@@ -93,7 +93,7 @@ class TestWindow : public Dialog ...@@ -93,7 +93,7 @@ class TestWindow : public Dialog
public: public:
TestWindow() : Dialog( (Window *) NULL ) TestWindow() : Dialog( (Window *) NULL )
{ {
SetText( rtl::OUString::createFromAscii( "Canvas test" ) ); SetText( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Canvas test" )) );
SetSizePixel( Size( 600, 450 ) ); SetSizePixel( Size( 600, 450 ) );
EnablePaint( true ); EnablePaint( true );
Show(); Show();
...@@ -153,8 +153,8 @@ class DemoRenderer ...@@ -153,8 +153,8 @@ class DemoRenderer
lang::Locale aLocale; lang::Locale aLocale;
rendering::FontInfo aFontInfo; rendering::FontInfo aFontInfo;
aFontInfo.FamilyName = ::rtl::OUString::createFromAscii( "Swiss" ); aFontInfo.FamilyName = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Swiss" ));
aFontInfo.StyleName = ::rtl::OUString::createFromAscii( "SansSerif" ); aFontInfo.StyleName = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "SansSerif" ));
geometry::Matrix2D aFontMatrix( 1, 0, geometry::Matrix2D aFontMatrix( 1, 0,
0, 1 ); 0, 1 );
rendering::FontRequest aFontRequest( aFontInfo, 12.0, 0.0, aLocale ); rendering::FontRequest aFontRequest( aFontInfo, 12.0, 0.0, aLocale );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment