From d49cd5c0904cf03ef17204a37266d98766217bc0 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Wed, 14 Nov 2012 20:29:57 +0000 Subject: [PATCH] The parent of a nested thansaction is definitely not itself. git-svn-id: http://root.cern.ch/svn/root/trunk@47284 27541ba8-7e3a-0410-8455-c3a389f83636 --- include/cling/Interpreter/Transaction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cling/Interpreter/Transaction.h b/include/cling/Interpreter/Transaction.h index 92526fb7..7c4c4a93 100644 --- a/include/cling/Interpreter/Transaction.h +++ b/include/cling/Interpreter/Transaction.h @@ -199,7 +199,7 @@ namespace cling { ///\param[in] nested - The transaction to be nested. /// void addNestedTransaction(Transaction* nested) { - nested->setParent(nested); + nested->setParent(this); // Leave a marker in the parent transaction, where the nested transaction // started. Using empty DeclGroupRef is save because append() filters // out possible empty DeclGroupRefs.