Skip to content

Commit

Permalink
EasyHack: RTL macro converted from createFromAscii
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Hunter authored and Thorsten Behrens committed Nov 9, 2010
1 parent 10bfc7d commit 597faa1
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 75 deletions.
6 changes: 3 additions & 3 deletions canvas/source/tools/parametricpolypolygon.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ namespace canvas
uno::Sequence<rtl::OUString> ParametricPolyPolygon::getAvailableServiceNames()
{
uno::Sequence<rtl::OUString> aRet(3);
aRet[0] = rtl::OUString::createFromAscii("LinearGradient");
aRet[1] = rtl::OUString::createFromAscii("EllipticalGradient");
aRet[2] = rtl::OUString::createFromAscii("RectangularGradient");
aRet[0] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LinearGradient" ));
aRet[1] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "EllipticalGradient" ));
aRet[2] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "RectangularGradient" ));

return aRet;
}
Expand Down
8 changes: 4 additions & 4 deletions canvas/source/tools/propertysethelper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ namespace canvas
void throwUnknown( const ::rtl::OUString& aPropertyName )
{
throw beans::UnknownPropertyException(
::rtl::OUString::createFromAscii("PropertySetHelper: property ") +
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PropertySetHelper: property " )) +
aPropertyName +
::rtl::OUString::createFromAscii(" not found."),
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " not found." )),
uno::Reference< uno::XInterface >()
);
}

void throwVeto( const ::rtl::OUString& aPropertyName )
{
throw beans::PropertyVetoException(
::rtl::OUString::createFromAscii("PropertySetHelper: property ") +
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PropertySetHelper: property " )) +
aPropertyName +
::rtl::OUString::createFromAscii(" access was vetoed."),
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " access was vetoed." )),
uno::Reference< uno::XInterface >() );
}

Expand Down
Loading

0 comments on commit 597faa1

Please sign in to comment.