From 9ffc134e0a810ae2deb1d44c24c5d0e4e8123c86 Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Fri, 9 Jul 2010 09:59:16 -0300 Subject: Put back variable-name in 'reference-count' tag. Reviewer: Marcelo Lira Luciano Wolf --- typesystem.cpp | 2 ++ typesystem.h | 1 + 2 files changed, 3 insertions(+) diff --git a/typesystem.cpp b/typesystem.cpp index 3e8b2dc49..70f5dc9bd 100644 --- a/typesystem.cpp +++ b/typesystem.cpp @@ -840,6 +840,7 @@ bool Handler::startElement(const QString &, const QString &n, break; case StackElement::ReferenceCount: attributes["action"] = QString(); + attributes["variable-name"] = QString(); break; case StackElement::ParentOwner: attributes["index"] = QString(); @@ -1350,6 +1351,7 @@ bool Handler::startElement(const QString &, const QString &n, actions["ignore"] = ReferenceCount::Ignore; } rc.action = actions.value(attributes["action"].toLower(), ReferenceCount::Invalid); + rc.varName = attributes["variable-name"]; if (rc.action == ReferenceCount::Invalid) { m_error = "unrecognized value for action attribute. supported actions:"; diff --git a/typesystem.h b/typesystem.h index f8358a763..7c5363e96 100644 --- a/typesystem.h +++ b/typesystem.h @@ -95,6 +95,7 @@ struct ReferenceCount }; Action action; + QString varName; }; struct ArgumentOwner -- cgit v1.2.3