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

Henry Castro hcastro at collabora.com
Sat Aug 13 12:58:05 UTC 2016


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

New commits:
commit c7bef135c5c1ad205105a511e8c5d3a4657d789f
Author: Henry Castro <hcastro at collabora.com>
Date:   Sat Aug 13 08:59:14 2016 -0400

    loolwsd: fix -Werror=shadow

diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index 6d1affd..58d5853 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -1371,11 +1371,11 @@ void LOOLWSD::initialize(Application& self)
     for (size_t i = 0; ; ++i)
     {
         const std::string confPath = "logging.file.property[" + std::to_string(i) + "]";
-        const auto name = config().getString(confPath + "[@name]", "");
-        if (!name.empty())
+        const auto confName = config().getString(confPath + "[@name]", "");
+        if (!confName.empty())
         {
             const auto value = config().getString(confPath, "");
-            logProperties.emplace(name, value);
+            logProperties.emplace(confName, value);
         }
         else if (!config().has(confPath))
         {


More information about the Libreoffice-commits mailing list