diff --git a/BaseLib/ConfigTreeNew.cpp b/BaseLib/ConfigTreeNew.cpp
index a741047a2719fe015710100db37bec84b9d3383c..eed2bfb36cbc5a245404b78893d8222a5a817a0c 100644
--- a/BaseLib/ConfigTreeNew.cpp
+++ b/BaseLib/ConfigTreeNew.cpp
@@ -110,8 +110,7 @@ getConfSubtreeOptional(std::string const& root) const
 
     if (subtree) {
         markVisited(root);
-        return boost::optional<ConfigTreeNew>(std::move(
-                ConfigTreeNew(*subtree, *this, root)));
+        return ConfigTreeNew(*subtree, *this, root);
     } else {
         markVisited(root, true);
         return boost::optional<ConfigTreeNew>();