Skip to content
Snippets Groups Projects
Commit 5fda4891 authored by Timo Koch's avatar Timo Koch
Browse files

[params] Apply naming conventions for private member function

parent 3839d4c4
No related branches found
No related tags found
1 merge request!1842Fix/issue 802 inconsistent param lookup
...@@ -456,7 +456,7 @@ public: ...@@ -456,7 +456,7 @@ public:
std::vector<std::string> getUnusedKeys() const std::vector<std::string> getUnusedKeys() const
{ {
std::vector<std::string> unusedParams; std::vector<std::string> unusedParams;
findUnusedKeys(params_, unusedParams); findUnusedKeys_(params_, unusedParams);
return unusedParams; return unusedParams;
} }
...@@ -467,9 +467,9 @@ private: ...@@ -467,9 +467,9 @@ private:
* \param unusedParams Container to store unused keys * \param unusedParams Container to store unused keys
* \param prefix the prefix attached to the key * \param prefix the prefix attached to the key
*/ */
void findUnusedKeys(const Dune::ParameterTree& tree, void findUnusedKeys_(const Dune::ParameterTree& tree,
std::vector<std::string>& unusedParams, std::vector<std::string>& unusedParams,
const std::string& prefix = "") const const std::string& prefix = "") const
{ {
// loop over all keys of the current tree // loop over all keys of the current tree
// store keys which were not accessed // store keys which were not accessed
...@@ -481,7 +481,7 @@ private: ...@@ -481,7 +481,7 @@ private:
// recursively loop over all subtrees // recursively loop over all subtrees
const auto& subTreeKeys = tree.getSubKeys(); const auto& subTreeKeys = tree.getSubKeys();
for (const auto& key : subTreeKeys) for (const auto& key : subTreeKeys)
findUnusedKeys(tree.sub(key), unusedParams, prefix + key + "."); findUnusedKeys_(tree.sub(key), unusedParams, prefix + key + ".");
} }
const Dune::ParameterTree& params_; const Dune::ParameterTree& params_;
......
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