From c85a3bba86109d4d943fe52ceec1e4d98a5f9e06 Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <dmitri.naumov@ufz.de>
Date: Wed, 27 Mar 2024 13:57:06 +0100
Subject: [PATCH] [BL] Unify decl. and def. argument names

---
 BaseLib/ConfigTree.cpp | 12 ++++++------
 BaseLib/ConfigTree.h   |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/BaseLib/ConfigTree.cpp b/BaseLib/ConfigTree.cpp
index faa829e5b8a..570c5c75a22 100644
--- a/BaseLib/ConfigTree.cpp
+++ b/BaseLib/ConfigTree.cpp
@@ -115,23 +115,23 @@ ConfigTree& ConfigTree::operator=(ConfigTree&& other)
     return *this;
 }
 
-ConfigTree ConfigTree::getConfigParameter(std::string const& root) const
+ConfigTree ConfigTree::getConfigParameter(std::string const& param) const
 {
-    auto ct = getConfigSubtree(root);
+    auto ct = getConfigSubtree(param);
     if (ct.hasChildren())
     {
-        error("Requested parameter <" + root + "> actually is a subtree.");
+        error("Requested parameter <" + param + "> actually is a subtree.");
     }
     return ct;
 }
 
 std::optional<ConfigTree> ConfigTree::getConfigParameterOptional(
-    std::string const& root) const
+    std::string const& param) const
 {
-    auto ct = getConfigSubtreeOptional(root);
+    auto ct = getConfigSubtreeOptional(param);
     if (ct && ct->hasChildren())
     {
-        error("Requested parameter <" + root + "> actually is a subtree.");
+        error("Requested parameter <" + param + "> actually is a subtree.");
     }
     return ct;
 }
diff --git a/BaseLib/ConfigTree.h b/BaseLib/ConfigTree.h
index fff3525c9d0..1f97b409168 100644
--- a/BaseLib/ConfigTree.h
+++ b/BaseLib/ConfigTree.h
@@ -382,7 +382,7 @@ public:
      * \pre \c param must not have been read before from this ConfigTree.
      */
     std::optional<ConfigTree> getConfigParameterOptional(
-        std::string const& root) const;
+        std::string const& param) const;
 
     /*! Fetches all parameters with name \c param from the current level of the
      * tree.
-- 
GitLab