sal/rtl/bootstrap.cxx |   33 ++++++++++++++++-----------------
 1 file changed, 16 insertions(+), 17 deletions(-)

New commits:
commit 7bea643b8b09e27852dbd68459289873e2989feb
Author:     Stephan Bergmann <stephan.bergm...@allotropia.de>
AuthorDate: Tue Feb 13 08:18:27 2024 +0100
Commit:     Stephan Bergmann <stephan.bergm...@allotropia.de>
CommitDate: Tue Feb 13 12:56:00 2024 +0100

    Fix mis-merge from 8b53fa726e0d496f18228b0ca9ce2f61196f6a57
    
    "Introduce a fundamental.override.ini for bootstrap variables"
    
    Change-Id: I88f11e422d98100bafd6fd9a7ab5e892dcc3fb46
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163292
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de>

diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx
index 485d582cc875..a0fa9f3c2000 100644
--- a/sal/rtl/bootstrap.cxx
+++ b/sal/rtl/bootstrap.cxx
@@ -219,19 +219,18 @@ static OUString getIniFileName(bool overriding) {
     fileName = OUString(inifile, strlen(inifile), RTL_TEXTENCODING_UTF8);
     resolvePathnameUrl(&fileName);
 #elif defined ANDROID
-        // Apps are self-contained on Android, too, can as well hardcode
-        // it as "rc" in the "/assets" directory, i.e.  inside the app's
-        // .apk (zip) archive as the /assets/rc file.
-        fileName = overriding
-            ? 
OUString("vnd.sun.star.pathname:/assets/fundamental.override.ini")
-            : OUString("vnd.sun.star.pathname:/assets/rc");
-        fileName = OUString("vnd.sun.star.pathname:/assets/rc");
-        resolvePathnameUrl(&fileName);
+    // Apps are self-contained on Android, too, can as well hardcode
+    // it as "rc" in the "/assets" directory, i.e.  inside the app's
+    // .apk (zip) archive as the /assets/rc file.
+    fileName = overriding
+        ? OUString("vnd.sun.star.pathname:/assets/fundamental.override.ini")
+        : OUString("vnd.sun.star.pathname:/assets/rc");
+    resolvePathnameUrl(&fileName);
 #elif defined(EMSCRIPTEN)
-        fileName = overriding
-            ? 
OUString("vnd.sun.star.pathname:/instdir/program/fundamental.override.ini")
-            : OUString("vnd.sun.star.pathname:/instdir/program/sofficerc");
-        resolvePathnameUrl(&fileName);
+    fileName = overriding
+        ? 
OUString("vnd.sun.star.pathname:/instdir/program/fundamental.override.ini")
+        : OUString("vnd.sun.star.pathname:/instdir/program/sofficerc");
+    resolvePathnameUrl(&fileName);
 #else
     if (!overriding && getFromCommandLineArgs("INIFILENAME", &fileName))
     {
@@ -265,11 +264,11 @@ static OUString getIniFileName(bool overriding) {
         }
 
 #ifdef MACOSX
-            // We keep only executables in the MacOS folder, and all
-            // rc files in LIBO_ETC_FOLDER (typically "Resources").
-            sal_Int32 off = fileName.lastIndexOf( "/MacOS/" );
-            if (off != -1)
-                fileName = fileName.replaceAt(off + 1, strlen("MacOS"), u"" 
LIBO_ETC_FOLDER);
+        // We keep only executables in the MacOS folder, and all
+        // rc files in LIBO_ETC_FOLDER (typically "Resources").
+        sal_Int32 off = fileName.lastIndexOf( "/MacOS/" );
+        if (off != -1)
+            fileName = fileName.replaceAt(off + 1, strlen("MacOS"), u"" 
LIBO_ETC_FOLDER);
 #endif
     }
 #endif

Reply via email to