diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-12-07 23:45:01 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2015-12-07 23:45:01 +0000 |
| commit | a0bef55aef1f82f56535cfadf30247657ccc3f90 (patch) | |
| tree | a5523d84140303998f86072c6263e16af6d5d15e /src/sp-marker.cpp | |
| parent | cppification : GHashMaps replaced by stl maps. getResouceList now gives a std... (diff) | |
| parent | static code analysis (diff) | |
| download | inkscape-a0bef55aef1f82f56535cfadf30247657ccc3f90.tar.gz inkscape-a0bef55aef1f82f56535cfadf30247657ccc3f90.zip | |
update to trunk
(bzr r14504.1.7)
Diffstat (limited to 'src/sp-marker.cpp')
| -rw-r--r-- | src/sp-marker.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/sp-marker.cpp b/src/sp-marker.cpp index 9334614dc..88dfbe04e 100644 --- a/src/sp-marker.cpp +++ b/src/sp-marker.cpp @@ -43,14 +43,18 @@ public: std::vector<Inkscape::DrawingItem *> items; }; -SPMarker::SPMarker() : SPGroup(), SPViewBox() { - - this->markerUnits = 0; - this->markerUnits_set = 0; - - this->orient_mode = MARKER_ORIENT_ANGLE; - this->orient_set = 0; - this->orient = 0; +SPMarker::SPMarker() : SPGroup(), SPViewBox(), + markerUnits_set(0), + markerUnits(0), + refX(), + refY(), + markerWidth(), + markerHeight(), + orient_set(0), + orient_mode(MARKER_ORIENT_ANGLE) +{ + // cppcheck-suppress useInitializationList + orient = 0; } /** @@ -442,7 +446,7 @@ const gchar *generate_marker(std::vector<Inkscape::XML::Node*> &reprs, Geom::Rec const gchar *mark_id = repr->attribute("id"); SPObject *mark_object = document->getObjectById(mark_id); - for (std::vector<Inkscape::XML::Node*>::const_iterator i=reprs.begin();i!=reprs.end();i++){ + for (std::vector<Inkscape::XML::Node*>::const_iterator i=reprs.begin();i!=reprs.end();++i){ Inkscape::XML::Node *node = *i; SPItem *copy = SP_ITEM(mark_object->appendChildRepr(node)); |
