summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/controls/grid/defaultgridcolumnmodel.cxx')
-rw-r--r--toolkit/source/controls/grid/defaultgridcolumnmodel.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx b/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
index 26ef3b6940c6..558907fa7cd0 100644
--- a/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
+++ b/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
@@ -26,6 +26,7 @@
#include <comphelper/sequence.hxx>
#include <comphelper/componentguard.hxx>
#include <comphelper/processfactory.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <toolkit/helper/servicenames.hxx>
#include <rtl/ustrbuf.hxx>
#include <tools/diagnose_ex.h>
@@ -301,17 +302,11 @@ namespace toolkit
return OUString( "org.openoffice.comp.toolkit.DefaultGridColumnModel" );
}
- //------------------------------------------------------------------------------------------------------------------
sal_Bool SAL_CALL DefaultGridColumnModel::supportsService( const OUString& i_serviceName ) throw (RuntimeException)
{
- const Sequence< OUString > aServiceNames( getSupportedServiceNames() );
- for ( sal_Int32 i=0; i<aServiceNames.getLength(); ++i )
- if ( aServiceNames[i] == i_serviceName )
- return sal_True;
- return sal_False;
+ return cppu::supportsService(this, i_serviceName);
}
- //------------------------------------------------------------------------------------------------------------------
Sequence< OUString > SAL_CALL DefaultGridColumnModel::getSupportedServiceNames( ) throw (RuntimeException)
{
const OUString aServiceName( OUString::createFromAscii( szServiceName_DefaultGridColumnModel ) );