summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-07-06 17:43:38 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:07 -0300
commitab3fd527a3c7f4131fbf48b6c06166ef684431d3 (patch)
tree4b6ed11e36aa70ece681132013451e48862240f5
parent439524d314304c3bcfd7e351d040387b3fd60d2e (diff)
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 <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--abstractmetalang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/abstractmetalang.cpp b/abstractmetalang.cpp
index fd9716f7..8d69ef4c 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;