summaryrefslogtreecommitdiff
path: root/comphelper/source/property/opropertybag.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/property/opropertybag.cxx')
-rw-r--r--comphelper/source/property/opropertybag.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/comphelper/source/property/opropertybag.cxx b/comphelper/source/property/opropertybag.cxx
index d54fdf3c2559..86cf28c7cb3d 100644
--- a/comphelper/source/property/opropertybag.cxx
+++ b/comphelper/source/property/opropertybag.cxx
@@ -26,6 +26,7 @@
#include <com/sun/star/beans/Property.hpp>
#include <comphelper/namedvaluecollection.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <osl/thread.h>
@@ -142,13 +143,9 @@ namespace comphelper
return getImplementationName_static();
}
- //--------------------------------------------------------------------
::sal_Bool SAL_CALL OPropertyBag::supportsService( const OUString& rServiceName ) throw (RuntimeException)
{
- Sequence< OUString > aServices( getSupportedServiceNames_static() );
- const OUString* pStart = aServices.getConstArray();
- const OUString* pEnd = aServices.getConstArray() + aServices.getLength();
- return ::std::find( pStart, pEnd, rServiceName ) != pEnd;
+ return cppu::supportsService(this, rServiceName);
}
//--------------------------------------------------------------------