summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/addruno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/addruno.cxx')
-rw-r--r--sc/source/ui/unoobj/addruno.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/addruno.cxx b/sc/source/ui/unoobj/addruno.cxx
index b675a6435197..0cf18e6f131d 100644
--- a/sc/source/ui/unoobj/addruno.cxx
+++ b/sc/source/ui/unoobj/addruno.cxx
@@ -19,6 +19,7 @@
#include <com/sun/star/table/CellAddress.hpp>
#include <com/sun/star/table/CellRangeAddress.hpp>
+#include <cppuhelper/supportsservice.hxx>
#include <svl/itemprop.hxx>
#include <vcl/svapp.hxx>
@@ -296,9 +297,7 @@ OUString SAL_CALL ScAddressConversionObj::getImplementationName() throw(uno::Run
sal_Bool SAL_CALL ScAddressConversionObj::supportsService( const OUString& rServiceName )
throw(uno::RuntimeException)
{
- OUString aServiceStr( rServiceName );
- return aServiceStr.equalsAscii( bIsRange ? SC_SERVICENAME_RANGEADDRESS
- : SC_SERVICENAME_CELLADDRESS );
+ return cppu::supportsService(this, rServiceName);
}
uno::Sequence<OUString> SAL_CALL ScAddressConversionObj::getSupportedServiceNames()