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-switch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp-switch.cpp') diff --git a/src/sp-switch.cpp b/src/sp-switch.cpp index fa97cde91..911357660 100644 --- a/src/sp-switch.cpp +++ b/src/sp-switch.cpp @@ -71,11 +71,11 @@ GSList *SPSwitch::_childList(bool add_ref, SPObject::Action action) { return g_slist_prepend (NULL, child); } -const char *SPSwitch::displayName() { +const char *SPSwitch::displayName() const { return _("Conditional Group"); } -gchar *SPSwitch::description() { +gchar *SPSwitch::description() const { gint len = this->getItemCount(); return g_strdup_printf( ngettext(_("of %d object"), _("of %d objects"), len), len); -- 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-switch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp-switch.cpp') diff --git a/src/sp-switch.cpp b/src/sp-switch.cpp index 911357660..5c88d7af8 100644 --- a/src/sp-switch.cpp +++ b/src/sp-switch.cpp @@ -81,7 +81,7 @@ gchar *SPSwitch::description() const { ngettext(_("of %d object"), _("of %d objects"), len), len); } -void SPSwitch::child_added(Inkscape::XML::Node* child, Inkscape::XML::Node* ref) { +void SPSwitch::child_added(Inkscape::XML::Node* /*child*/, Inkscape::XML::Node* /*ref*/) { this->_reevaluate(true); } -- cgit v1.2.3