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/text-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/text-tool.cpp')
| -rw-r--r-- | src/ui/tools/text-tool.cpp | 51 |
1 files changed, 20 insertions, 31 deletions
diff --git a/src/ui/tools/text-tool.cpp b/src/ui/tools/text-tool.cpp index ba68c7829..00f6a853c 100644 --- a/src/ui/tools/text-tool.cpp +++ b/src/ui/tools/text-tool.cpp @@ -91,37 +91,26 @@ const std::string& TextTool::getPrefsPath() { const std::string TextTool::prefsPath = "/tools/text"; -TextTool::TextTool() : ToolBase() { - this->preedit_string = 0; - this->unipos = 0; - - this->cursor_shape = cursor_text_xpm; - this->hot_x = 7; - this->hot_y = 7; - - this->xp = 0; - this->yp = 0; - this->tolerance = 0; - this->within_tolerance = false; - - this->imc = NULL; - - this->text = NULL; - this->pdoc = Geom::Point(0, 0); - - this->unimode = false; - - this->cursor = NULL; - this->indicator = NULL; - this->frame = NULL; - this->grabbed = NULL; - this->timeout = 0; - this->show = FALSE; - this->phase = 0; - this->nascent_object = 0; - this->over_text = 0; - this->dragging = 0; - this->creating = 0; +TextTool::TextTool() + : ToolBase(cursor_text_xpm, 7, 7) + , imc(NULL) + , text(NULL) + , pdoc(0, 0) + , unimode(false) + , unipos(0) + , cursor(NULL) + , indicator(NULL) + , frame(NULL) + , timeout(0) + , show(false) + , phase(false) + , nascent_object(false) + , over_text(false) + , dragging(0) + , creating(false) + , grabbed(NULL) + , preedit_string(NULL) +{ } TextTool::~TextTool() { |
