[Libreoffice-commits] core.git: connectivity/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Oct 8 21:52:21 UTC 2019
connectivity/source/drivers/postgresql/pq_connection.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit b16730d8f10b596e00f34e15ca9c011f347f57b1
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Oct 8 17:41:51 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Oct 8 23:50:48 2019 +0200
loplugin:stringadd (macOS)
Change-Id: I4dde1fa6f1f3e6d75abe5002655d3cd5fa685c0b
Reviewed-on: https://gerrit.libreoffice.org/80487
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx
index e07c035eda70..0b5ea84bc6fa 100644
--- a/connectivity/source/drivers/postgresql/pq_connection.cxx
+++ b/connectivity/source/drivers/postgresql/pq_connection.cxx
@@ -132,11 +132,11 @@ static LogLevel readLogLevelFromConfiguration()
OUString fileName;
osl_getModuleURLFromFunctionAddress(
reinterpret_cast<oslGenericFunction>(readLogLevelFromConfiguration), &fileName.pData );
- fileName = fileName.copy( fileName.lastIndexOf( '/' )+1 );
+ fileName = fileName.copy( fileName.lastIndexOf( '/' )+1 ) +
#ifdef MACOSX
- fileName += "../Resources/";
+ "../Resources/"
#endif
- fileName += "postgresql-sdbc.ini";
+ "postgresql-sdbc.ini";
rtl::Bootstrap bootstrapHandle( fileName );
OUString str;
More information about the Libreoffice-commits
mailing list