[Libreoffice-commits] online.git: loolwsd/LOOLWSD.cpp

Andras Timar andras.timar at collabora.com
Sun Jul 3 14:44:11 UTC 2016


 loolwsd/LOOLWSD.cpp |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 801c8f46761f88e66e9dafdd8ff7daa7a9ab8fb2
Author: Andras Timar <andras.timar at collabora.com>
Date:   Sun Jul 3 16:43:36 2016 +0200

    loolwsd: command line config override should work in non-debug builds as well ;)

diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index cef575f..c5bead4 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -1387,13 +1387,6 @@ void LOOLWSD::handleOption(const std::string& optionName,
         DisplayVersion = true;
     else if (optionName == "port")
         ClientPortNumber = std::stoi(value);
-#if ENABLE_DEBUG
-    else if (optionName == "unitlib")
-        UnitTestLibrary = value;
-    else if (optionName == "nocaps")
-        NoCapsForKit = true;
-    else if (optionName == "careerspan")
-        careerSpanSeconds = std::stoi(value);
     else if (optionName == "override")
     {
         std::string optName;
@@ -1401,6 +1394,13 @@ void LOOLWSD::handleOption(const std::string& optionName,
         LOOLProtocol::parseNameValuePair(value, optName, optValue);
         _overrideSettings[optName] = optValue;
     }
+#if ENABLE_DEBUG
+    else if (optionName == "unitlib")
+        UnitTestLibrary = value;
+    else if (optionName == "nocaps")
+        NoCapsForKit = true;
+    else if (optionName == "careerspan")
+        careerSpanSeconds = std::stoi(value);
 
     static const char* clientPort = getenv("LOOL_TEST_CLIENT_PORT");
     if (clientPort)


More information about the Libreoffice-commits mailing list