From d63acce85c01257af96809f1081ab479d1f703a8 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Thu, 17 Feb 2011 10:15:45 -0300 Subject: Added a depth counter to avoid segmentation faults when discarding type entries. And an unit test was added. Reviewed by Lauro Moura Reviewed by Luciano Wolf --- typesystem_p.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'typesystem_p.h') 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; -- cgit v1.2.3