summaryrefslogtreecommitdiffstats
path: root/src/sp-marker.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2015-12-07 23:45:01 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2015-12-07 23:45:01 +0000
commita0bef55aef1f82f56535cfadf30247657ccc3f90 (patch)
treea5523d84140303998f86072c6263e16af6d5d15e /src/sp-marker.cpp
parentcppification : GHashMaps replaced by stl maps. getResouceList now gives a std... (diff)
parentstatic code analysis (diff)
downloadinkscape-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.cpp22
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));