pyuno/source/loader/pyuno_loader.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 1c8df0fd1ad896cbf7dfb08f2d70fa49e70c5106 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Apr 17 09:20:20 2023 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Apr 17 11:42:07 2023 +0200 loplugin:stringadd Change-Id: I04dad33cad121eba7189fc78cac762e31d7c4c2c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150477 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/pyuno/source/loader/pyuno_loader.cxx b/pyuno/source/loader/pyuno_loader.cxx index e9cbc807ebf3..27ef6abbc198 100644 --- a/pyuno/source/loader/pyuno_loader.cxx +++ b/pyuno/source/loader/pyuno_loader.cxx @@ -208,9 +208,7 @@ void pythonInit() { OUString sBrandLocation("$BRAND_BASE_DIR/program"); rtl::Bootstrap::expandMacros(sBrandLocation); osl::FileBase::getSystemPathFromFileURL(sBrandLocation, sBrandLocation); - sPath = OUStringBuffer(sPath). - append(static_cast<sal_Unicode>(SAL_PATHSEPARATOR)). - append(sBrandLocation).makeStringAndClear(); + sPath = sPath + OUStringChar(SAL_PATHSEPARATOR) + sBrandLocation; osl_setEnvironment(sEnvName.pData, sPath.pData); #endif