diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-07-06 17:43:38 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:07 -0300 |
commit | ab3fd527a3c7f4131fbf48b6c06166ef684431d3 (patch) | |
tree | 4b6ed11e36aa70ece681132013451e48862240f5 /abstractmetalang.cpp | |
parent | 439524d314304c3bcfd7e351d040387b3fd60d2e (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>
Diffstat (limited to 'abstractmetalang.cpp')
-rw-r--r-- | abstractmetalang.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |