summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorBatuhan Taskaya <isidentical@gmail.com>2020-01-27 10:59:05 +0300
committerStephan Bergmann <sbergman@redhat.com>2020-01-27 16:09:37 +0100
commitae9b25af849a63e8f9f41b8030c4947d6a59d358 (patch)
tree771063d633fc3b64f20e6621d14569fba57704d1 /connectivity
parent9bc731524b3c5cc809ca4573daa316173a5ec13a (diff)
tdf#54938: Adapt supportsService implementations to cppu::supportsService
Change-Id: I4478002b733ba54c16b5ca428c4a85b7cbc46c05 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87484 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/postgresql/pq_driver.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_driver.cxx b/connectivity/source/drivers/postgresql/pq_driver.cxx
index 27eae6a34403..99571112cd90 100644
--- a/connectivity/source/drivers/postgresql/pq_driver.cxx
+++ b/connectivity/source/drivers/postgresql/pq_driver.cxx
@@ -192,10 +192,7 @@ public:
}
sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override
{
- for( int i = 0 ; i < m_serviceNames.getLength() ; i ++ )
- if( m_serviceNames[i] == ServiceName )
- return true;
- return false;
+ return cppu::supportsService(this, ServiceName);
}
Sequence< OUString > SAL_CALL getSupportedServiceNames() override
{