summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-04-17 09:20:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-04-17 11:42:07 +0200
commit1c8df0fd1ad896cbf7dfb08f2d70fa49e70c5106 (patch)
treea26419309a9b905a4055f404edbdc3f31b4cb7f3 /pyuno
parent066b23115c2a360507e306a88da572554daefab7 (diff)
loplugin:stringadd
Change-Id: I04dad33cad121eba7189fc78cac762e31d7c4c2c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150477 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/loader/pyuno_loader.cxx4
1 files changed, 1 insertions, 3 deletions
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