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>
diff --git a/connectivity/source/drivers/postgresql/pq_driver.cxx b/connectivity/source/drivers/postgresql/pq_driver.cxx
index 27eae6a..9957111 100644
--- a/connectivity/source/drivers/postgresql/pq_driver.cxx
+++ b/connectivity/source/drivers/postgresql/pq_driver.cxx
@@ -192,10 +192,7 @@
    }
    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
    {