From ab3fd527a3c7f4131fbf48b6c06166ef684431d3 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Tue, 6 Jul 2010 17:43:38 -0300 Subject: Fix bug#253 - "Segmentation Fault when clicked on ListWidget with TableModel" Tag not only abstract functions but also non private functions with "EmptyFunction" when their visibility was reduced. Reviewer: Marcelo Lira Luciano Wolf --- abstractmetalang.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'abstractmetalang.cpp') diff --git a/abstractmetalang.cpp b/abstractmetalang.cpp index fd9716f7d..8d69ef4c0 100644 --- a/abstractmetalang.cpp +++ b/abstractmetalang.cpp @@ -2041,7 +2041,7 @@ void AbstractMetaClass::fixFunctions() // Private overrides of abstract functions have to go into the class or // the subclasses will not compile as non-abstract classes. // But they don't need to be implemented, since they can never be called. - if (f->isPrivate() && sf->isAbstract()) { + if (f->isPrivate()) { f->setFunctionType(AbstractMetaFunction::EmptyFunction); // f->setVisibility(sf->visibility()); *f += AbstractMetaAttributes::FinalInTargetLang; -- cgit v1.2.3