diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-10-26 22:00:51 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-10-26 22:00:51 +0000 |
| commit | 73edade30f70b4c0ad94c9561b4e4ec0675465b0 (patch) | |
| tree | de55f48e427afc5faf8fb97467a8f79b86820b0f /src/sp-spiral.cpp | |
| parent | fix crash (diff) | |
| download | inkscape-73edade30f70b4c0ad94c9561b4e4ec0675465b0.tar.gz inkscape-73edade30f70b4c0ad94c9561b4e4ec0675465b0.zip | |
Added some consts.
(bzr r12729)
Diffstat (limited to 'src/sp-spiral.cpp')
| -rw-r--r-- | src/sp-spiral.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-spiral.cpp b/src/sp-spiral.cpp index 56aca507f..ffb875f2a 100644 --- a/src/sp-spiral.cpp +++ b/src/sp-spiral.cpp @@ -226,11 +226,11 @@ void SPSpiral::update_patheffect(bool write) { this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); } -const char* SPSpiral::displayName() { +const char* SPSpiral::displayName() const { return _("Spiral"); } -gchar* SPSpiral::description() { +gchar* SPSpiral::description() const { // TRANSLATORS: since turn count isn't an integer, please adjust the // string as needed to deal with an localized plural forms. return g_strdup_printf (_("with %3f turns"), this->revo); @@ -413,7 +413,7 @@ void SPSpiral::setPosition(gdouble cx, gdouble cy, gdouble exp, gdouble revo, gd this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); } -void SPSpiral::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) { +void SPSpiral::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const { // We will determine the spiral's midpoint ourselves, instead of trusting on the base class // Therefore snapping to object midpoints is temporarily disabled Inkscape::SnapPreferences local_snapprefs = *snapprefs; |
