aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem_p.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-02-17 10:15:45 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:15 -0300
commitd63acce85c01257af96809f1081ab479d1f703a8 (patch)
treee78a9e9f566dff5aac4795c325745d4996b3f269 /typesystem_p.h
parent2ca6e422c0a4c58fad74fe523abb25716df81ce2 (diff)
Added a depth counter to avoid segmentation faults when discarding type entries.
And an unit test was added. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'typesystem_p.h')
-rw-r--r--typesystem_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/typesystem_p.h b/typesystem_p.h
index 97859425a..d69de3fcb 100644
--- a/typesystem_p.h
+++ b/typesystem_p.h
@@ -149,7 +149,8 @@ private:
TypeDatabase* m_database;
StackElement* m_current;
- StackElement* m_currentOptional;
+ StackElement* m_currentDroppedEntry;
+ int m_currentDroppedEntryDepth;
QString m_defaultPackage;
QString m_defaultSuperclass;
QString m_error;