summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-01-17 20:02:50 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-01-17 20:02:50 +0000
commitbf58d4cb9c86682d1416c64378d1cfc8a95554e8 (patch)
tree573e206bdd797d1ca26d62a55dbff3078b0fe292 /src/live_effects/effect.cpp
parentmore const happiness (and removal of duplicate code in sp-object.h) (diff)
downloadinkscape-bf58d4cb9c86682d1416c64378d1cfc8a95554e8.tar.gz
inkscape-bf58d4cb9c86682d1416c64378d1cfc8a95554e8.zip
const ....
(bzr r12039)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index 26095d84b..b0be02b95 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -300,7 +300,7 @@ Effect::~Effect()
}
Glib::ustring
-Effect::getName()
+Effect::getName() const
{
if (lpeobj->effecttype_set && LPETypeConverter.is_valid_id(lpeobj->effecttype) )
return Glib::ustring( _(LPETypeConverter.get_label(lpeobj->effecttype).c_str()) );
@@ -325,7 +325,7 @@ Effect::doOnApply (SPLPEItem const*/*lpeitem*/)
* Is performed each time before the effect is updated.
*/
void
-Effect::doBeforeEffect (SPLPEItem */*lpeitem*/)
+Effect::doBeforeEffect (SPLPEItem const*/*lpeitem*/)
{
//Do nothing for simple effects
}
@@ -370,7 +370,7 @@ Effect::writeParamsToSVG() {
* your LPE. But don't forget to call the parent method so that is_ready is set to true!
*/
void
-Effect::acceptParamPath (SPPath */*param_path*/) {
+Effect::acceptParamPath (SPPath const*/*param_path*/) {
setReady();
}
@@ -424,7 +424,7 @@ Effect::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in)
}
void
-Effect::readallParameters(Inkscape::XML::Node * repr)
+Effect::readallParameters(Inkscape::XML::Node const* repr)
{
std::vector<Parameter *>::iterator it = param_vector.begin();
while (it != param_vector.end()) {
@@ -491,7 +491,7 @@ Effect::addHandles(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item) {
* This is the function called by external code like SPLPEItem.
*/
std::vector<Geom::PathVector>
-Effect::getHelperPaths(SPLPEItem *lpeitem)
+Effect::getHelperPaths(SPLPEItem const* lpeitem)
{
std::vector<Geom::PathVector> hp_vec;
@@ -524,7 +524,7 @@ Effect::getHelperPaths(SPLPEItem *lpeitem)
* This function should be overwritten by derived effects if they want to provide their own helperpaths.
*/
void
-Effect::addCanvasIndicators(SPLPEItem */*lpeitem*/, std::vector<Geom::PathVector> &/*hp_vec*/)
+Effect::addCanvasIndicators(SPLPEItem const*/*lpeitem*/, std::vector<Geom::PathVector> &/*hp_vec*/)
{
}