Skip to content
Snippets Groups Projects
Commit c85a3bba authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[BL] Unify decl. and def. argument names

parent 2d0d335b
No related branches found
No related tags found
No related merge requests found
...@@ -115,23 +115,23 @@ ConfigTree& ConfigTree::operator=(ConfigTree&& other) ...@@ -115,23 +115,23 @@ ConfigTree& ConfigTree::operator=(ConfigTree&& other)
return *this; 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()) if (ct.hasChildren())
{ {
error("Requested parameter <" + root + "> actually is a subtree."); error("Requested parameter <" + param + "> actually is a subtree.");
} }
return ct; return ct;
} }
std::optional<ConfigTree> ConfigTree::getConfigParameterOptional( 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()) if (ct && ct->hasChildren())
{ {
error("Requested parameter <" + root + "> actually is a subtree."); error("Requested parameter <" + param + "> actually is a subtree.");
} }
return ct; return ct;
} }
......
...@@ -382,7 +382,7 @@ public: ...@@ -382,7 +382,7 @@ public:
* \pre \c param must not have been read before from this ConfigTree. * \pre \c param must not have been read before from this ConfigTree.
*/ */
std::optional<ConfigTree> getConfigParameterOptional( 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 /*! Fetches all parameters with name \c param from the current level of the
* tree. * tree.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment