summaryrefslogtreecommitdiffstats
path: root/src/sp-marker.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-12-08 11:05:08 +0000
committerjabiertxof <jabier.arraiza@marker.es>2015-12-08 11:05:08 +0000
commitd79bd642b3214f1c44d7c1268e8adcb7bd55fffc (patch)
tree74a8529da5f23996ba4b358c045a7588f8c27f24 /src/sp-marker.cpp
parentminor changes (diff)
parentmerge lp:~inkscape.dev/inkscape/lock_guides (diff)
downloadinkscape-d79bd642b3214f1c44d7c1268e8adcb7bd55fffc.tar.gz
inkscape-d79bd642b3214f1c44d7c1268e8adcb7bd55fffc.zip
update to trunk
(bzr r14272.1.11)
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));