summaryrefslogtreecommitdiffstats
path: root/src/sp-star.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-10-26 22:00:51 +0000
committerMarkus Engel <markus.engel@tum.de>2013-10-26 22:00:51 +0000
commit73edade30f70b4c0ad94c9561b4e4ec0675465b0 (patch)
treede55f48e427afc5faf8fb97467a8f79b86820b0f /src/sp-star.cpp
parentfix crash (diff)
downloadinkscape-73edade30f70b4c0ad94c9561b4e4ec0675465b0.tar.gz
inkscape-73edade30f70b4c0ad94c9561b4e4ec0675465b0.zip
Added some consts.
(bzr r12729)
Diffstat (limited to 'src/sp-star.cpp')
-rw-r--r--src/sp-star.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-star.cpp b/src/sp-star.cpp
index e634eccac..da10eeaa3 100644
--- a/src/sp-star.cpp
+++ b/src/sp-star.cpp
@@ -251,13 +251,13 @@ void SPStar::update_patheffect(bool write) {
this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
}
-const char* SPStar::displayName() {
+const char* SPStar::displayName() const {
if (this->flatsided == false)
return _("Star");
return _("Polygon");
}
-gchar* SPStar::description() {
+gchar* SPStar::description() const {
// while there will never be less than 3 vertices, we still need to
// make calls to ngettext because the pluralization may be different
// for various numbers >=3. The singular form is used as the index.
@@ -498,7 +498,7 @@ sp_star_position_set (SPStar *star, gint sides, Geom::Point center, gdouble r1,
star->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
}
-void SPStar::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) {
+void SPStar::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const {
// We will determine the star's midpoint ourselves, instead of trusting on the base class
// Therefore snapping to object midpoints is temporarily disabled
Inkscape::SnapPreferences local_snapprefs = *snapprefs;