diff options
author | Mike FABIAN <mike.fabian@basyskom.de> | 2010-05-06 16:44:22 +0200 |
---|---|---|
committer | Mike FABIAN <mike.fabian@basyskom.de> | 2010-05-07 14:09:57 +0200 |
commit | b2c0c017646b753acdc97a8b97b9145c67b731cb (patch) | |
tree | 34882db91faa1c1d2127d6f8524dcc2252ab8cd4 | |
parent | 659aa8057fd3733ae489d265112566b10138c2c3 (diff) |
Changes: fix coverity issues CID 91, 89, 88
RevBy: Armin Berres
Details:
Checker: UNINIT
Function: Pt_MTheme::constructor()
Checker: UNINIT
Function: Pt_MApplication::ctor2()
Checker: UNINIT
Function: Pt_MApplication::ctor()
-rw-r--r-- | benchmarks/pt_mapplication/pt_mapplication.cpp | 4 | ||||
-rw-r--r-- | benchmarks/pt_mtheme/pt_mtheme.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks/pt_mapplication/pt_mapplication.cpp b/benchmarks/pt_mapplication/pt_mapplication.cpp index 76441e07..1dc4d7ea 100644 --- a/benchmarks/pt_mapplication/pt_mapplication.cpp +++ b/benchmarks/pt_mapplication/pt_mapplication.cpp @@ -39,7 +39,7 @@ void Pt_MApplication::processCreationAndCtor() void Pt_MApplication::ctor() { - MApplication *a; + MApplication *a = NULL; QBENCHMARK { int fakeArgc = 1; char *fakeArgv[fakeArgc]; @@ -52,7 +52,7 @@ void Pt_MApplication::ctor() void Pt_MApplication::ctor2() { - MApplication *a; + MApplication *a = NULL; QBENCHMARK { int fakeArgc = 1; char *fakeArgv[fakeArgc]; diff --git a/benchmarks/pt_mtheme/pt_mtheme.cpp b/benchmarks/pt_mtheme/pt_mtheme.cpp index ba84b585..52f4bf95 100644 --- a/benchmarks/pt_mtheme/pt_mtheme.cpp +++ b/benchmarks/pt_mtheme/pt_mtheme.cpp @@ -26,7 +26,7 @@ void Pt_MTheme::constructor() { - MTheme *theme; + MTheme *theme = NULL; QBENCHMARK_ONCE { theme = new MTheme("widgetsgallery"); } |