[Uml-devel] Help finding out why CodeClassField::m_classFieldType is not set

Sebastian Stein seb_stein at gmx.de
Tue Jul 13 13:06:03 UTC 2004


There are several valgrind reports like the following:

==2640== Conditional jump or move depends on uninitialised value(s)
==2640==    at 0x81028FE: ClassifierCodeDocument::hasObjectVectorClassFields() (classifiercodedocument.cpp:107)
==2640==    by 0x8264EAE: CPPHeaderCodeDocument::updateContent() (cppheadercodedocument.cpp:460)
==2640==    by 0x81034D5: ClassifierCodeDocument::synchronize() (classifiercodedocument.cpp:396)
==2640==    by 0x8103701: ClassifierCodeDocument::syncToParent() (classifiercodedocument.cpp:439)

The same happens for classifiercodedocument.cpp in line 62, 74, 86, 98 and
107. There are mostly the same conditions like:

if(cf->getClassFieldType() != CodeClassField::Attribute)

So cf->getClassFieldType() returns something wrong. cf is of type
CodeClassField. The function returns CodeClassField::m_classFieldType.
m_classFieldType is set in CodeClassField::setParentUMLObject() which is
called by the constructor. So m_classFieldType should really have a value.

So I am lost, I don't know why why this variable should be uninitialised.
Is there anybody having another idea about it?

Sebastian




More information about the umbrello-devel mailing list