[Uml-devel] KDE/kdesdk/umbrello/umbrello/codegenerators

Oliver Kellogg okellogg at users.sourceforge.net
Wed Aug 29 20:30:47 UTC 2007


SVN commit 706272 by okellogg:

updateContent(): On loading
http://websvn.kde.org/trunk/KDE/kdelibs/phonon/DESIGN/design.xmi?revision=698532&view=markup
c->getOpList().last() crashes for me - but count() doesn't.


 M  +1 -1      cppheadercodedocument.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/cppheadercodedocument.cpp #706271:706272
@@ -364,7 +364,7 @@
     CodeClassFieldList privAggregationClassFields = getSpecificClassFields ( CodeClassField::Aggregation, Uml::Visibility::Private);
     CodeClassFieldList privCompositionClassFields = getSpecificClassFields ( CodeClassField::Composition, Uml::Visibility::Private);
 
-    bool hasOperationMethods = c->getOpList().last() ? true : false;
+    bool hasOperationMethods = c->getOpList().count() ? true : false;
     bool hasNamespace = false;
     bool isEnumeration = false;
     bool isInterface = parentIsInterface();




More information about the umbrello-devel mailing list