summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/measure-tool.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2014-02-26 01:08:53 +0000
committerMarkus Engel <markus.engel@tum.de>2014-02-26 01:08:53 +0000
commit7e85379f54292595afe296e5f0be240f6c8f7835 (patch)
treea40874339b162e49b76008b81e0d046d05443ac6 /src/ui/tools/measure-tool.cpp
parentAllow 'transform' on flowRoot, flowPara, and flowSpan. (diff)
downloadinkscape-7e85379f54292595afe296e5f0be240f6c8f7835.tar.gz
inkscape-7e85379f54292595afe296e5f0be240f6c8f7835.zip
Made constructors of tools use initializer lists.
(bzr r13060)
Diffstat (limited to 'src/ui/tools/measure-tool.cpp')
-rw-r--r--src/ui/tools/measure-tool.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ui/tools/measure-tool.cpp b/src/ui/tools/measure-tool.cpp
index 4d7f1e074..380aa79e3 100644
--- a/src/ui/tools/measure-tool.cpp
+++ b/src/ui/tools/measure-tool.cpp
@@ -236,12 +236,10 @@ void createAngleDisplayCurve(SPDesktop *desktop, Geom::Point const &center, Geom
} // namespace
-MeasureTool::MeasureTool() : ToolBase() {
- this->grabbed = 0;
-
- this->cursor_shape = cursor_measure_xpm;
- this->hot_x = 4;
- this->hot_y = 4;
+MeasureTool::MeasureTool()
+ : ToolBase(cursor_measure_xpm, 4, 4)
+ , grabbed(NULL)
+{
}
MeasureTool::~MeasureTool() {