diff options
Diffstat (limited to 'toolkit/source/controls/grid/defaultgriddatamodel.cxx')
-rw-r--r-- | toolkit/source/controls/grid/defaultgriddatamodel.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.cxx b/toolkit/source/controls/grid/defaultgriddatamodel.cxx index e59078e6374c..853eabb8c1b2 100644 --- a/toolkit/source/controls/grid/defaultgriddatamodel.cxx +++ b/toolkit/source/controls/grid/defaultgriddatamodel.cxx @@ -22,6 +22,7 @@ #include <comphelper/stlunosequence.hxx> #include <comphelper/componentguard.hxx> +#include <cppuhelper/supportsservice.hxx> #include <toolkit/helper/servicenames.hxx> #include <tools/diagnose_ex.h> #include <rtl/ref.hxx> @@ -427,13 +428,11 @@ namespace toolkit return aImplName; } - //------------------------------------------------------------------------------------------------------------------ sal_Bool SAL_CALL DefaultGridDataModel::supportsService( const OUString& ServiceName ) throw (RuntimeException) { - return ServiceName.equalsAscii( szServiceName_DefaultGridDataModel ); + return cppu::supportsService(this, ServiceName); } - //------------------------------------------------------------------------------------------------------------------ Sequence< OUString > SAL_CALL DefaultGridDataModel::getSupportedServiceNames( ) throw (RuntimeException) { static const OUString aServiceName( OUString::createFromAscii( szServiceName_DefaultGridDataModel ) ); |