aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.cpp
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-07-09 09:59:16 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:07 -0300
commit9ffc134e0a810ae2deb1d44c24c5d0e4e8123c86 (patch)
tree4ff0466c254b923392b74aa74d0f17536373117a /typesystem.cpp
parent8f129f10f2fc325b37d017224796aa91f965a83b (diff)
Put back variable-name in 'reference-count' tag.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'typesystem.cpp')
-rw-r--r--typesystem.cpp2
1 files changed, 2 insertions, 0 deletions
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:";