diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2014-01-14 13:05:02 -0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-16 10:26:03 +0100 |
commit | ccf47bd943bf8d09e60fd3310ba31d550e744765 (patch) | |
tree | 7cc54d98b14a79a96cddf82da52d00d75da9d53c /canvas/source/vcl/canvascustomsprite.cxx | |
parent | a2218b0d8b39e5018342b9085a3ec98941631952 (diff) |
fdo#54938: Convert canvas to cppu::supportsService
Final part
Change-Id: I5ff8e4aacf7be7c0cb1eab520f01cc312143641e
Diffstat (limited to 'canvas/source/vcl/canvascustomsprite.cxx')
-rw-r--r-- | canvas/source/vcl/canvascustomsprite.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/canvas/source/vcl/canvascustomsprite.cxx b/canvas/source/vcl/canvascustomsprite.cxx index 9dead83713de..98339506642d 100644 --- a/canvas/source/vcl/canvascustomsprite.cxx +++ b/canvas/source/vcl/canvascustomsprite.cxx @@ -21,6 +21,7 @@ #include <canvas/debug.hxx> #include <tools/diagnose_ex.h> #include <canvas/verbosetrace.hxx> +#include <cppuhelper/supportsservice.hxx> #include <rtl/math.hxx> @@ -117,23 +118,20 @@ namespace vclcanvas maCanvasHelper.clear(); } -#define IMPLEMENTATION_NAME "VCLCanvas.CanvasCustomSprite" -#define SERVICE_NAME "com.sun.star.rendering.CanvasCustomSprite" - OUString SAL_CALL CanvasCustomSprite::getImplementationName() throw( uno::RuntimeException ) { - return OUString( IMPLEMENTATION_NAME ); + return OUString( "VCLCanvas.CanvasCustomSprite" ); } sal_Bool SAL_CALL CanvasCustomSprite::supportsService( const OUString& ServiceName ) throw( uno::RuntimeException ) { - return ServiceName == SERVICE_NAME; + return cppu::supportsService( this, ServiceName ); } uno::Sequence< OUString > SAL_CALL CanvasCustomSprite::getSupportedServiceNames() throw( uno::RuntimeException ) { uno::Sequence< OUString > aRet(1); - aRet[0] = OUString( SERVICE_NAME ); + aRet[0] = "com.sun.star.rendering.CanvasCustomSprite"; return aRet; } |