summaryrefslogtreecommitdiffstats
path: root/src/sp-marker.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2015-12-07 20:18:04 +0000
committerKris De Gussem <Kris.De.Gussem@hotmail.com>2015-12-07 20:18:04 +0000
commitddc6177836028eca89fb701ad2e5e923cb94ae87 (patch)
tree8afb813154662cbe687e0396ae3483abfed6dc29 /src/sp-marker.cpp
parentSet minimum line height to "strut" height per CSS. Prevent possible infinite ... (diff)
downloadinkscape-ddc6177836028eca89fb701ad2e5e923cb94ae87.tar.gz
inkscape-ddc6177836028eca89fb701ad2e5e923cb94ae87.zip
static code analysis
(bzr r14508)
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));