summaryrefslogtreecommitdiffstats
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
parent8f129f10f2fc325b37d017224796aa91f965a83b (diff)
Put back variable-name in 'reference-count' tag.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--typesystem.cpp2
-rw-r--r--typesystem.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/typesystem.cpp b/typesystem.cpp
index 3e8b2dc4..70f5dc9b 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 f8358a76..7c5363e9 100644
--- a/typesystem.h
+++ b/typesystem.h
@@ -95,6 +95,7 @@ struct ReferenceCount
};
Action action;
+ QString varName;
};
struct ArgumentOwner