diff options
| author | Markus Engel <markus.engel@tum.de> | 2014-02-26 01:08:53 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2014-02-26 01:08:53 +0000 |
| commit | 7e85379f54292595afe296e5f0be240f6c8f7835 (patch) | |
| tree | a40874339b162e49b76008b81e0d046d05443ac6 /src/ui/tools/pencil-tool.cpp | |
| parent | Allow 'transform' on flowRoot, flowPara, and flowSpan. (diff) | |
| download | inkscape-7e85379f54292595afe296e5f0be240f6c8f7835.tar.gz inkscape-7e85379f54292595afe296e5f0be240f6c8f7835.zip | |
Made constructors of tools use initializer lists.
(bzr r13060)
Diffstat (limited to 'src/ui/tools/pencil-tool.cpp')
| -rw-r--r-- | src/ui/tools/pencil-tool.cpp | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/ui/tools/pencil-tool.cpp b/src/ui/tools/pencil-tool.cpp index 52779d551..4fbaa50f3 100644 --- a/src/ui/tools/pencil-tool.cpp +++ b/src/ui/tools/pencil-tool.cpp @@ -83,20 +83,15 @@ const std::string& PencilTool::getPrefsPath() { const std::string PencilTool::prefsPath = "/tools/freehand/pencil"; -PencilTool::PencilTool() : - FreehandBase(), - 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 PencilTool is not properly constructed... +PencilTool::PencilTool() + : FreehandBase(cursor_pencil_xpm, 4, 4) + , p() + , npoints(0) + , state(SP_PENCIL_CONTEXT_IDLE) + , req_tangent(0, 0) + , is_drawing(false) + , sketch_n(0) { - this->cursor_shape = cursor_pencil_xpm; - this->hot_x = 4; - this->hot_y = 4; - this->sketch_n = 0; } void PencilTool::setup() { |
