diff options
author | Ricardo Montania <ricardo@linuxafundo.com.br> | 2012-10-27 15:43:55 -0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-31 00:55:47 +0000 |
commit | 6bc62f4f43c7458399169ddb2cba30ae4188b1bd (patch) | |
tree | a91ba7059b44e86fd527135ccacfe15a5f5cea99 /basegfx/source/tools | |
parent | 9cb8bef68b67b5f2fba3bee38cd8449ea804b86e (diff) |
::rtl::OUString -> OUString in basegfx
Change-Id: I2e0189135d5f30b20e625b849cedbef2eb639ed9
Reviewed-on: https://gerrit.libreoffice.org/929
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basegfx/source/tools')
-rw-r--r-- | basegfx/source/tools/canvastools.cxx | 2 | ||||
-rw-r--r-- | basegfx/source/tools/unopolypolygon.cxx | 18 |
2 files changed, 9 insertions, 11 deletions
diff --git a/basegfx/source/tools/canvastools.cxx b/basegfx/source/tools/canvastools.cxx index d5fed18abca7..101d6a037ce3 100644 --- a/basegfx/source/tools/canvastools.cxx +++ b/basegfx/source/tools/canvastools.cxx @@ -329,7 +329,7 @@ namespace basegfx if( !xLinePoly.is() ) { throw lang::IllegalArgumentException( - ::rtl::OUString( + OUString( "basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(): Invalid input" "poly-polygon, cannot retrieve vertex data"), uno::Reference< uno::XInterface >(), diff --git a/basegfx/source/tools/unopolypolygon.cxx b/basegfx/source/tools/unopolypolygon.cxx index d209be7309c4..96823772fa49 100644 --- a/basegfx/source/tools/unopolypolygon.cxx +++ b/basegfx/source/tools/unopolypolygon.cxx @@ -113,10 +113,8 @@ namespace unotools // found - contract violation. if( !xLinePoly.is() ) throw lang::IllegalArgumentException( - ::rtl::OUString( - RTL_CONSTASCII_USTRINGPARAM( - "UnoPolyPolygon::addPolyPolygon(): Invalid input " - "poly-polygon, cannot retrieve vertex data")), + "UnoPolyPolygon::addPolyPolygon(): Invalid input " + "poly-polygon, cannot retrieve vertex data", static_cast<cppu::OWeakObject*>(this), 1); aSrcPoly = unotools::polyPolygonFromPoint2DSequenceSequence( @@ -447,20 +445,20 @@ namespace unotools #define IMPLEMENTATION_NAME "gfx::internal::UnoPolyPolygon" #define SERVICE_NAME "com.sun.star.rendering.PolyPolygon2D" - ::rtl::OUString SAL_CALL UnoPolyPolygon::getImplementationName() throw( uno::RuntimeException ) + OUString SAL_CALL UnoPolyPolygon::getImplementationName() throw( uno::RuntimeException ) { - return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) ); + return OUString( IMPLEMENTATION_NAME ); } - sal_Bool SAL_CALL UnoPolyPolygon::supportsService( const ::rtl::OUString& ServiceName ) throw( uno::RuntimeException ) + sal_Bool SAL_CALL UnoPolyPolygon::supportsService( const OUString& ServiceName ) throw( uno::RuntimeException ) { return ServiceName == SERVICE_NAME; } - uno::Sequence< ::rtl::OUString > SAL_CALL UnoPolyPolygon::getSupportedServiceNames() throw( uno::RuntimeException ) + uno::Sequence< OUString > SAL_CALL UnoPolyPolygon::getSupportedServiceNames() throw( uno::RuntimeException ) { - uno::Sequence< ::rtl::OUString > aRet(1); - aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) ); + uno::Sequence< OUString > aRet(1); + aRet[0] = SERVICE_NAME ; return aRet; } |