summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/inspectormodelbase.cxx
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-09-25 15:41:29 -0300
committerStephan Bergmann <sbergman@redhat.com>2013-10-07 17:01:33 +0000
commit7235d23267e4591e5cf47762abd3f63421b06904 (patch)
tree6353239b1c586642e22c5df892a7c0560e632fa5 /extensions/source/propctrlr/inspectormodelbase.cxx
parent8e37c7ae282f10724d6322aa028a7dd6b698f071 (diff)
fdo#54938: Adapt supportsService implementations to cppu::supportsService
Change-Id: I683c0d30c3286ed5d725d4eefe8b3977b82ee316 Reviewed-on: https://gerrit.libreoffice.org/6035 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions/source/propctrlr/inspectormodelbase.cxx')
-rw-r--r--extensions/source/propctrlr/inspectormodelbase.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/extensions/source/propctrlr/inspectormodelbase.cxx b/extensions/source/propctrlr/inspectormodelbase.cxx
index 5c6f21ebd316..3d5f2b57d309 100644
--- a/extensions/source/propctrlr/inspectormodelbase.cxx
+++ b/extensions/source/propctrlr/inspectormodelbase.cxx
@@ -23,6 +23,7 @@
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <comphelper/propertycontainerhelper.hxx>
+#include <cppuhelper/supportsservice.hxx>
//........................................................................
namespace pcr
@@ -233,18 +234,9 @@ namespace pcr
setFastPropertyValue( MODEL_PROPERTY_ID_IS_READ_ONLY, makeAny( _IsReadOnly ) );
}
- //--------------------------------------------------------------------
::sal_Bool SAL_CALL ImplInspectorModel::supportsService( const OUString& ServiceName ) throw (RuntimeException)
{
- StlSyntaxSequence< OUString > aSupported( getSupportedServiceNames() );
- for ( StlSyntaxSequence< OUString >::const_iterator check = aSupported.begin();
- check != aSupported.end();
- ++check
- )
- if ( check->equals( ServiceName ) )
- return sal_True;
-
- return sal_False;
+ return cppu::supportsService(this, ServiceName);
}
//--------------------------------------------------------------------