[Libreoffice-commits] core.git: connectivity/source

Batuhan Taskaya (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 27 15:10:15 UTC 2020


 connectivity/source/drivers/postgresql/pq_driver.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit ae9b25af849a63e8f9f41b8030c4947d6a59d358
Author:     Batuhan Taskaya <isidentical at gmail.com>
AuthorDate: Mon Jan 27 10:59:05 2020 +0300
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Jan 27 16:09:37 2020 +0100

    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 at redhat.com>

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
     {


More information about the Libreoffice-commits mailing list