Skip to content
Snippets Groups Projects
Commit bca05ffd authored by Christoph Lehmann's avatar Christoph Lehmann
Browse files

[BL] removed default args

parent a67b78a8
No related branches found
No related tags found
No related merge requests found
...@@ -256,8 +256,8 @@ public: ...@@ -256,8 +256,8 @@ public:
*/ */
explicit ConfigTree(PTree const& tree, explicit ConfigTree(PTree const& tree,
std::string const& filename, std::string const& filename,
Callback const& error_cb = onerror, Callback const& error_cb,
Callback const& warning_cb = onerror); Callback const& warning_cb);
//! copying is not compatible with the semantics of this class //! copying is not compatible with the semantics of this class
ConfigTree(ConfigTree const&) = delete; ConfigTree(ConfigTree const&) = delete;
......
...@@ -21,6 +21,7 @@ ConfigTreeTopLevel::ConfigTreeTopLevel( ...@@ -21,6 +21,7 @@ ConfigTreeTopLevel::ConfigTreeTopLevel(
ConfigTree::PTree&& ptree) ConfigTree::PTree&& ptree)
: _ptree(std::move(ptree)) : _ptree(std::move(ptree))
, _ctree(_ptree, filepath, , _ctree(_ptree, filepath,
ConfigTree::onerror,
be_ruthless ? ConfigTree::onerror : ConfigTree::onwarning) be_ruthless ? ConfigTree::onerror : ConfigTree::onwarning)
{ {
} }
......
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