aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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