From 7df7ec94d25635f8156e22ebbd1ef53f0d520676 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 10 May 2014 12:43:16 +0200 Subject: [PATCH] Fix scoping rules for dictionaries. Refs #6183 --- lib/config/aexpression.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/config/aexpression.cpp b/lib/config/aexpression.cpp index be027f956..77aeefe4d 100644 --- a/lib/config/aexpression.cpp +++ b/lib/config/aexpression.cpp @@ -308,9 +308,9 @@ Value AExpression::OpDict(const AExpression *expr, const Dictionary::Ptr& locals } } - result->Remove("__parent"); - - return result; + Dictionary::Ptr xresult = result->ShallowClone(); + xresult->Remove("__parent"); + return xresult; } Value AExpression::OpSet(const AExpression *expr, const Dictionary::Ptr& locals)