diff options
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_driver.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_driver.cxx | 5 |
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 { |