* use is_objccategory() instead of just checking for oo_is_classhelper when

looking for a category, as oo_is_classhelper is also set for Pascal
    class helpers (fixes crash caused by the fact that Object Pascal class
    helpers don't have childof set, while categories do -- mantis #29666)

git-svn-id: trunk@33193 -
This commit is contained in:
Jonas Maebe 2016-03-06 14:44:21 +00:00
parent a0296d7311
commit 0da80d1a15

View File

@ -3944,7 +3944,7 @@ implementation
(for id.randommethod), so only check category methods here
}
defowner:=tobjectdef(tprocdef(tprocsym(srsym).procdeflist[i]).owner.defowner);
if (oo_is_classhelper in defowner.objectoptions) and
if is_objccategory(defowner) and
def_is_related(pd,defowner.childof) then
begin
{ we need to know if a procedure references symbols