diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2013-10-07 17:33:54 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2013-10-07 17:33:54 +0000 |
| commit | f05ed28b81f4b89f394eb21eee94418e78bd10a8 (patch) | |
| tree | 723d804cf27c0b25ff641d5c728d7ae8303535ee /src | |
| parent | initialisation (diff) | |
| download | inkscape-f05ed28b81f4b89f394eb21eee94418e78bd10a8.tar.gz inkscape-f05ed28b81f4b89f394eb21eee94418e78bd10a8.zip | |
cppcheck: initialisation
(bzr r12668)
Diffstat (limited to 'src')
| -rw-r--r-- | src/libavoid/router.cpp | 8 | ||||
| -rw-r--r-- | src/pencil-context.cpp | 20 |
2 files changed, 16 insertions, 12 deletions
diff --git a/src/libavoid/router.cpp b/src/libavoid/router.cpp index ab13a981b..35f921bb4 100644 --- a/src/libavoid/router.cpp +++ b/src/libavoid/router.cpp @@ -58,13 +58,17 @@ class ActionInfo { } ActionInfo(ActionType t, ShapeRef *s) : type(t), - objPtr(s) + objPtr(s), + newPoly(), + firstMove(0) { COLA_ASSERT(type != ConnChange); } ActionInfo(ActionType t, ConnRef *c) : type(t), - objPtr(c) + objPtr(c), + newPoly(), + firstMove(0) { COLA_ASSERT(type == ConnChange); } diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp index 94310ea31..abd9af1d3 100644 --- a/src/pencil-context.cpp +++ b/src/pencil-context.cpp @@ -80,19 +80,19 @@ const std::string& SPPencilContext::getPrefsPath() { const std::string SPPencilContext::prefsPath = "/tools/freehand/pencil"; -SPPencilContext::SPPencilContext() : SPDrawContext() { - this->is_drawing = false; - +SPPencilContext::SPPencilContext() : + SPDrawContext(), + p(), + npoints(0), + state(SP_PENCIL_CONTEXT_IDLE), + req_tangent(0,0), + is_drawing(false), + ps(), + sketch_interpolation(Geom::Piecewise<Geom::D2<Geom::SBasis> >())// since SPPencilContext is not properly constructed... +{ this->cursor_shape = cursor_pencil_xpm; this->hot_x = 4; this->hot_y = 4; - - this->npoints = 0; - this->state = SP_PENCIL_CONTEXT_IDLE; - this->req_tangent = Geom::Point(0, 0); - - // since SPPencilContext is not properly constructed... - this->sketch_interpolation = Geom::Piecewise<Geom::D2<Geom::SBasis> >(); this->sketch_n = 0; } |
