fix daca codeblocks crash (#1968)
* fix daca codeblocks crash * fix the cause of the missing scope
This commit is contained in:
parent
9b1066f0bc
commit
a05dfc9150
|
@ -247,7 +247,7 @@
|
|||
<define name="DECLARE_EXPORTED_EVENT_TYPE(expdecl, name, value)" value=""/>
|
||||
<define name="DECLARE_EVENT_TYPE(name, value)" value=""/>
|
||||
<define name="DECLARE_LOCAL_EVENT_TYPE(name, value)" value=""/>
|
||||
<define name="DEFINE_EVENT_TYPE(name)" value="const wxEventType name = wxNewEventType()"/>
|
||||
<define name="DEFINE_EVENT_TYPE(name)" value="const wxEventType name = wxNewEventType();"/>
|
||||
<define name="DEFINE_LOCAL_EVENT_TYPE(name)" value=""/>
|
||||
<define name="WX_DECLARE_STRING_HASH_MAP(name, value)" value=""/>
|
||||
<define name="DECLARE_LOCAL_EVENT_TYPE(name, value)" value=""/>
|
||||
|
|
|
@ -355,7 +355,7 @@ void CheckMemoryLeak::mismatchAllocDealloc(const std::list<const Token *> &calls
|
|||
|
||||
CheckMemoryLeak::AllocType CheckMemoryLeak::functionReturnType(const Function* func, std::list<const Function*> *callstack) const
|
||||
{
|
||||
if (!func || !func->hasBody())
|
||||
if (!func || !func->hasBody() || !func->functionScope)
|
||||
return No;
|
||||
|
||||
// Get return pointer..
|
||||
|
|
Loading…
Reference in New Issue