connectivity/source/drivers/postgresql/pq_driver.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit ae9b25af849a63e8f9f41b8030c4947d6a59d358 Author: Batuhan Taskaya <isidenti...@gmail.com> AuthorDate: Mon Jan 27 10:59:05 2020 +0300 Commit: Stephan Bergmann <sberg...@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 <sberg...@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 { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits