summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <[email protected]>2015-06-08 09:34:29 +0200
committerRalf Habacker <[email protected]>2015-06-08 09:38:05 +0200
commit5a9f235ecb53191f1028463e2d09c4475a426832 (patch)
tree684c9458b4da7c094ee1d6366ec085bf181db6a5
parentb63e082aada5eb1f69eaf455270766815f6edc95 (diff)
Coverity check CID 71527: Uninitialized pointer field (UNINIT_CTOR).
Class member m_currentClass is not initialized in this constructor nor in any functions that it calls. CCBUG:340646
-rw-r--r--umbrello/codeimport/kdevcppparser/cpptree2uml.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/umbrello/codeimport/kdevcppparser/cpptree2uml.cpp b/umbrello/codeimport/kdevcppparser/cpptree2uml.cpp
index 3f11c30..3536fb2 100644
--- a/umbrello/codeimport/kdevcppparser/cpptree2uml.cpp
+++ b/umbrello/codeimport/kdevcppparser/cpptree2uml.cpp
@@ -36,8 +36,9 @@
#include <QRegExp>
CppTree2Uml::CppTree2Uml(const QString& fileName, CodeImpThread* thread)
- : m_anon(0), m_nsCnt(0), m_clsCnt(0), m_thread(thread)
+ : m_thread(thread)
{
+ clear();
QDir dir(fileName);
m_fileName = dir.canonicalPath();
}