From d7a3d42e527b4a7754b52640006d8eed01e71fc8 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Sat, 29 Oct 2011 18:41:49 +0200 Subject: cppcheck: variable initialisation (bzr r10705) --- src/display/nr-filter-turbulence.cpp | 2 ++ src/removeoverlap.cpp | 2 +- src/snapped-point.cpp | 1 + src/widgets/sp-color-wheel-selector.cpp | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/display/nr-filter-turbulence.cpp b/src/display/nr-filter-turbulence.cpp index 7e47c3bd9..fff327590 100644 --- a/src/display/nr-filter-turbulence.cpp +++ b/src/display/nr-filter-turbulence.cpp @@ -36,6 +36,8 @@ public: , _wrapw(0) , _wraph(0) , _inited(false) + , _seed(0) + , _octaves(0) {} void init(long seed, Geom::Rect const &tile, Geom::Point const &freq, bool stitch, diff --git a/src/removeoverlap.cpp b/src/removeoverlap.cpp index 6dd8d6a79..0c45e34a9 100644 --- a/src/removeoverlap.cpp +++ b/src/removeoverlap.cpp @@ -26,7 +26,7 @@ namespace { Geom::Point midpoint; Rectangle *vspc_rect; - Record() {} + Record() : item(0), vspc_rect(0) {} Record(SPItem *i, Geom::Point m, Rectangle *r) : item(i), midpoint(m), vspc_rect(r) {} }; diff --git a/src/snapped-point.cpp b/src/snapped-point.cpp index cffdda5d7..72875995d 100644 --- a/src/snapped-point.cpp +++ b/src/snapped-point.cpp @@ -84,6 +84,7 @@ Inkscape::SnappedPoint::SnappedPoint(Geom::Point const &p) _source_num = -1, _target = SNAPTARGET_UNDEFINED, _at_intersection = false; + _constrained_snap = false; _fully_constrained = false; _distance = Geom::infinity(); _tolerance = 1; diff --git a/src/widgets/sp-color-wheel-selector.cpp b/src/widgets/sp-color-wheel-selector.cpp index 18fc76a2d..148f3e834 100644 --- a/src/widgets/sp-color-wheel-selector.cpp +++ b/src/widgets/sp-color-wheel-selector.cpp @@ -83,7 +83,8 @@ ColorWheelSelector::ColorWheelSelector( SPColorSelector* csel ) _adj(0), _wheel(0), _sbtn(0), - _label(0) + _label(0), + _slider(0) { } -- cgit v1.2.3