cim-unito / MITK

MITK - unofficial, customized version
http://www.mitk.org/wiki
1 stars 0 forks source link

uninitialized value in QmitkDataStorageTreeModel #22

Closed espakm closed 12 years ago

espakm commented 12 years ago

There is a mistake in the constructor:

this->SetShowHelperObjects( _ShowHelperObjects ); this->SetShowNodesContainingNoData( _ShowNodesContainingNoData );

Both function call UpdateNodeVisibility what is superfluous. But what is worse is that UpdateNodeVisibility refers to both variables that are first that in these functions (m_ShowHelperObjects and m_ShowNodesContainingNoData).

This causes an error detected by valgrind.