summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorJosé Guilherme Vanz <vanz@libreoffice.org>2013-10-28 00:53:45 -0200
committerStephan Bergmann <sbergman@redhat.com>2013-11-04 12:24:18 +0100
commit2bb5f4773cc73a13bcd1460c02bc33bb4e60225c (patch)
treecf14cd65bf512283c5e5eddcba7b37ec238ba7b7 /connectivity
parentminor cleanup in ScHeaderControl: nCount is always greater than 0 (diff)
downloadcore-2bb5f4773cc73a13bcd1460c02bc33bb4e60225c.tar.gz
core-2bb5f4773cc73a13bcd1460c02bc33bb4e60225c.zip
fdo#54938: Convert to use cppu::supportsService
Change-Id: I5b8e08bad3d83b6df23127377c0700fcd27ff084 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/ConnectionWrapper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/commontools/ConnectionWrapper.cxx b/connectivity/source/commontools/ConnectionWrapper.cxx
index 1287acff5d1c..3fc14b8220e7 100644
--- a/connectivity/source/commontools/ConnectionWrapper.cxx
+++ b/connectivity/source/commontools/ConnectionWrapper.cxx
@@ -23,6 +23,7 @@
#include <com/sun/star/lang/DisposedException.hpp>
#include <comphelper/uno3.hxx>
#include <comphelper/sequence.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <com/sun/star/reflection/ProxyFactory.hpp>
#include <rtl/digest.h>
@@ -133,7 +134,7 @@ OUString SAL_CALL OConnectionWrapper::getImplementationName( ) throw (::com::su
// --------------------------------------------------------------------------------
sal_Bool SAL_CALL OConnectionWrapper::supportsService( const OUString& _rServiceName ) throw(::com::sun::star::uno::RuntimeException)
{
- return ::comphelper::findValue( getSupportedServiceNames(), _rServiceName, sal_True ).getLength() != 0;
+ return cppu::supportsService(this, _rServiceName);
}
// --------------------------------------------------------------------------------