From 73edade30f70b4c0ad94c9561b4e4ec0675465b0 Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Sun, 27 Oct 2013 00:00:51 +0200 Subject: Added some consts. (bzr r12729) --- src/sp-shape.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/sp-shape.cpp') diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index 913e208aa..3cc7ea1ce 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -389,7 +389,7 @@ void SPShape::modified(unsigned int flags) { } } -Geom::OptRect SPShape::bbox(Geom::Affine const &transform, SPItem::BBoxType bboxtype) { +Geom::OptRect SPShape::bbox(Geom::Affine const &transform, SPItem::BBoxType bboxtype) const { Geom::OptRect bbox; if (!this->_curve) { @@ -796,8 +796,7 @@ int SPShape::hasMarkers() const * \param type Marker type (e.g. SP_MARKER_LOC_START) * \return Number of markers that the shape has of this type. */ -int SPShape::numberOfMarkers(int type) -{ +int SPShape::numberOfMarkers(int type) const { Geom::PathVector const & pathv = this->_curve->get_pathvector(); if (pathv.size() == 0) { @@ -1025,7 +1024,7 @@ void SPShape::setCurveInsync(SPCurve *new_curve, unsigned int owner) } } -void SPShape::snappoints(std::vector &p, Inkscape::SnapPreferences const *snapprefs) { +void SPShape::snappoints(std::vector &p, Inkscape::SnapPreferences const *snapprefs) const { if (this->_curve == NULL) { return; } -- cgit v1.2.3 From e3aea550bec92bbb79e9ce5d6d0e1c357eff60b7 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Mon, 28 Oct 2013 10:31:07 +0100 Subject: "fix" some "unused parameter" warnings (bzr r12738) --- src/sp-shape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp-shape.cpp') diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index 3cc7ea1ce..b3a331cba 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -712,7 +712,7 @@ void SPShape::print(SPPrintContext* ctx) { } } -Inkscape::DrawingItem* SPShape::show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags) { +Inkscape::DrawingItem* SPShape::show(Inkscape::Drawing &drawing, unsigned int /*key*/, unsigned int /*flags*/) { Inkscape::DrawingShape *s = new Inkscape::DrawingShape(drawing); s->setStyle(this->style); s->setPath(this->_curve); -- cgit v1.2.3