Postgresql native, fix readLogLevelFromConfiguration
With: osl_getModuleURLFromFunctionAddress( reinterpret_cast<oslGenericFunction>(readLogLevelFromConfiguration), &fileName.pData ); The method retrieves the path to libpostgresql-sdbc-impllo.so, eg: file:///home/julien/lo/libreoffice/instdir/program/libpostgresql-sdbc-impllo.so but then instead of retrieving path + "postgresql-sdbc.ini" we obtained ".so" filename + "postgresql-sdbc.ini"=> libpostgresql-sdbc-impllo.sopostgresql-sdbc.ini Regression from1bdb2b6f06
author Noel Grandin <noel@peralex.com> 2013-11-04 13:51:21 +0200 committer Noel Grandin <noel@peralex.com> 2013-11-11 11:21:25 +0200 commit1bdb2b6f06
(patch) tree1d941e1795
parent2f2416ff06
(diff) remove unnecessary use of OUString constructor in CONNECTIVITY module Change-Id: Ie7be4b1078760f94d34dd1f6cb9932bd7fa70962 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89303 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
@@ -131,7 +131,7 @@ static LogLevel readLogLevelFromConfiguration()
|
||||
OUString fileName;
|
||||
osl_getModuleURLFromFunctionAddress(
|
||||
reinterpret_cast<oslGenericFunction>(readLogLevelFromConfiguration), &fileName.pData );
|
||||
fileName = fileName.copy( fileName.lastIndexOf( '/' )+1 ) +
|
||||
fileName = fileName.copy( 0, fileName.lastIndexOf( '/' )+1 ) +
|
||||
#ifdef MACOSX
|
||||
"../Resources/"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user