From 57558641a9819e4da97bc014ac35f9323306ae1f Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Thu, 10 Nov 2011 23:23:06 +0100 Subject: cppcheck: initialization / warning cleanup (bzr r10736) --- src/widgets/ege-paint-def.cpp | 10 +++++++--- src/widgets/sp-color-icc-selector.cpp | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/ege-paint-def.cpp b/src/widgets/ege-paint-def.cpp index c4325659d..542205b53 100644 --- a/src/widgets/ege-paint-def.cpp +++ b/src/widgets/ege-paint-def.cpp @@ -69,7 +69,8 @@ PaintDef::PaintDef() : r(0), g(0), b(0), - editable(false) + editable(false), + _listeners() { } @@ -79,7 +80,8 @@ PaintDef::PaintDef( ColorType type ) : r(0), g(0), b(0), - editable(false) + editable(false), + _listeners() { switch (type) { case CLEAR: @@ -100,7 +102,8 @@ PaintDef::PaintDef( unsigned int r, unsigned int g, unsigned int b, const std::s r(r), g(g), b(b), - editable(false) + editable(false), + _listeners() { } @@ -125,6 +128,7 @@ PaintDef& PaintDef::operator=( PaintDef const &other ) b = other.b; descr = other.descr; editable = other.editable; + //TODO: _listeners should be assigned a value } return *this; } diff --git a/src/widgets/sp-color-icc-selector.cpp b/src/widgets/sp-color-icc-selector.cpp index 888cc2629..28a317717 100644 --- a/src/widgets/sp-color-icc-selector.cpp +++ b/src/widgets/sp-color-icc-selector.cpp @@ -129,6 +129,8 @@ ColorICCSelector::ColorICCSelector( SPColorSelector* csel ) _updating( FALSE ), _dragging( FALSE ), _fixupNeeded(0), + _fixupBtn(0), + _profileSel(0), _fooCount(0), _fooScales(0), _fooAdj(0), @@ -137,6 +139,7 @@ ColorICCSelector::ColorICCSelector( SPColorSelector* csel ) _fooLabel(0), _fooMap(0), _adj(0), + _slider(0), _sbtn(0), _label(0) #if ENABLE_LCMS -- cgit v1.2.3