summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-parallel.cpp
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2013-01-22 14:40:50 +0000
committer~suv <suv-sf@users.sourceforge.net>2013-01-22 14:40:50 +0000
commit34baadb48632ee5c2f39cba0411b7810265bdc6a (patch)
treec7a76b25fd57605c40082d32644ff9a0da22d20e /src/live_effects/lpe-parallel.cpp
parentmerge from trunk (r12005) (diff)
parentFilters. Add missing inkscape namespace declaration for 'Channel Painting' (diff)
downloadinkscape-34baadb48632ee5c2f39cba0411b7810265bdc6a.tar.gz
inkscape-34baadb48632ee5c2f39cba0411b7810265bdc6a.zip
merge from trunk (r12051)
(bzr r11668.1.48)
Diffstat (limited to 'src/live_effects/lpe-parallel.cpp')
-rw-r--r--src/live_effects/lpe-parallel.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/live_effects/lpe-parallel.cpp b/src/live_effects/lpe-parallel.cpp
index 4d4b0c17d..bb37fd42c 100644
--- a/src/live_effects/lpe-parallel.cpp
+++ b/src/live_effects/lpe-parallel.cpp
@@ -32,14 +32,14 @@ class KnotHolderEntityLeftEnd : public LPEKnotHolderEntity {
public:
KnotHolderEntityLeftEnd(LPEParallel *effect) : LPEKnotHolderEntity(effect) {};
virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state);
- virtual Geom::Point knot_get();
+ virtual Geom::Point knot_get() const;
};
class KnotHolderEntityRightEnd : public LPEKnotHolderEntity {
public:
KnotHolderEntityRightEnd(LPEParallel *effect) : LPEKnotHolderEntity(effect) {};
virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state);
- virtual Geom::Point knot_get();
+ virtual Geom::Point knot_get() const;
};
} // namespace Pl
@@ -65,7 +65,7 @@ LPEParallel::~LPEParallel()
}
void
-LPEParallel::doOnApply (SPLPEItem *lpeitem)
+LPEParallel::doOnApply (SPLPEItem const* lpeitem)
{
SPCurve const *curve = SP_SHAPE(lpeitem)->_curve;
@@ -143,16 +143,16 @@ KnotHolderEntityRightEnd::knot_set(Geom::Point const &p, Geom::Point const &/*or
}
Geom::Point
-KnotHolderEntityLeftEnd::knot_get()
+KnotHolderEntityLeftEnd::knot_get() const
{
- LPEParallel *lpe = dynamic_cast<LPEParallel *>(_effect);
+ LPEParallel const *lpe = dynamic_cast<LPEParallel const*>(_effect);
return lpe->C;
}
Geom::Point
-KnotHolderEntityRightEnd::knot_get()
+KnotHolderEntityRightEnd::knot_get() const
{
- LPEParallel *lpe = dynamic_cast<LPEParallel *>(_effect);
+ LPEParallel const *lpe = dynamic_cast<LPEParallel const*>(_effect);
return lpe->D;
}