diff options
author | Alexandre Vicenzi <vicenzi.alexandre@gmail.com> | 2014-01-25 10:47:28 -0200 |
---|---|---|
committer | Marcos Souza <marcos.souza.org@gmail.com> | 2014-01-25 16:14:15 +0000 |
commit | 03cc76aad32b0aa40e229b14d3b2dca3ebc92dd8 (patch) | |
tree | 463b9dff46eb528b881fccddde7dd0d2be71de8b /toolkit/source/controls/roadmapentry.cxx | |
parent | 74c876e615fe575657d0a083f5a3781d4020f0c4 (diff) |
fdo#54938 Convert toolkit to cppu::supportsService
Change-Id: I3a35a86d9ad9419011f0305fdc41c8484ae63a04
Reviewed-on: https://gerrit.libreoffice.org/7646
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
Diffstat (limited to 'toolkit/source/controls/roadmapentry.cxx')
-rw-r--r-- | toolkit/source/controls/roadmapentry.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/toolkit/source/controls/roadmapentry.cxx b/toolkit/source/controls/roadmapentry.cxx index e636552e628c..1e01e24287d6 100644 --- a/toolkit/source/controls/roadmapentry.cxx +++ b/toolkit/source/controls/roadmapentry.cxx @@ -18,10 +18,9 @@ */ #include <toolkit/controls/roadmapentry.hxx> - #include <rtl/ustring.hxx> - #include <com/sun/star/beans/PropertyAttribute.hpp> +#include <cppuhelper/supportsservice.hxx> ORoadmapEntry::ORoadmapEntry() : ORoadmapEntry_Base( ) @@ -86,7 +85,7 @@ OUString SAL_CALL ORoadmapEntry::getImplementationName( ) throw (::com::sun::st sal_Bool SAL_CALL ORoadmapEntry::supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException) { - return ServiceName == "com.sun.star.awt.RoadmapItem"; + return cppu::supportsService(this, ServiceName); } ::com::sun::star::uno::Sequence< OUString > SAL_CALL ORoadmapEntry::getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException) |