From bca05ffd133ab3677d43e5b061043f24674de675 Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@ufz.de>
Date: Tue, 1 Mar 2016 11:21:16 +0100
Subject: [PATCH] [BL] removed default args

---
 BaseLib/ConfigTree.h       | 4 ++--
 BaseLib/ConfigTreeUtil.cpp | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/BaseLib/ConfigTree.h b/BaseLib/ConfigTree.h
index c1037ebf3e5..90a60270b40 100644
--- a/BaseLib/ConfigTree.h
+++ b/BaseLib/ConfigTree.h
@@ -256,8 +256,8 @@ public:
      */
     explicit ConfigTree(PTree const& tree,
                            std::string const& filename,
-                           Callback const& error_cb = onerror,
-                           Callback const& warning_cb = onerror);
+                           Callback const& error_cb,
+                           Callback const& warning_cb);
 
     //! copying is not compatible with the semantics of this class
     ConfigTree(ConfigTree const&) = delete;
diff --git a/BaseLib/ConfigTreeUtil.cpp b/BaseLib/ConfigTreeUtil.cpp
index ad5d7e769cc..f85898d12f8 100644
--- a/BaseLib/ConfigTreeUtil.cpp
+++ b/BaseLib/ConfigTreeUtil.cpp
@@ -21,6 +21,7 @@ ConfigTreeTopLevel::ConfigTreeTopLevel(
         ConfigTree::PTree&& ptree)
     : _ptree(std::move(ptree))
     , _ctree(_ptree, filepath,
+             ConfigTree::onerror,
              be_ruthless ? ConfigTree::onerror : ConfigTree::onwarning)
 {
 }
-- 
GitLab