diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-02-17 10:15:45 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:15 -0300 |
commit | d63acce85c01257af96809f1081ab479d1f703a8 (patch) | |
tree | e78a9e9f566dff5aac4795c325745d4996b3f269 /typesystem_p.h | |
parent | 2ca6e422c0a4c58fad74fe523abb25716df81ce2 (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.h | 3 |
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; |