summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-copy_rotate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/lpe-copy_rotate.cpp')
-rw-r--r--src/live_effects/lpe-copy_rotate.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/live_effects/lpe-copy_rotate.cpp b/src/live_effects/lpe-copy_rotate.cpp
index 9ac553ed5..c1b72c3c7 100644
--- a/src/live_effects/lpe-copy_rotate.cpp
+++ b/src/live_effects/lpe-copy_rotate.cpp
@@ -34,14 +34,14 @@ class KnotHolderEntityStartingAngle : public LPEKnotHolderEntity {
public:
KnotHolderEntityStartingAngle(LPECopyRotate *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 KnotHolderEntityRotationAngle : public LPEKnotHolderEntity {
public:
KnotHolderEntityRotationAngle(LPECopyRotate *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 CR
@@ -73,9 +73,9 @@ LPECopyRotate::~LPECopyRotate()
}
void
-LPECopyRotate::doOnApply(SPLPEItem *lpeitem)
+LPECopyRotate::doOnApply(SPLPEItem const* lpeitem)
{
- SPCurve *curve = SP_SHAPE(lpeitem)->_curve;
+ SPCurve const *curve = SP_SHAPE(lpeitem)->_curve;
A = *(curve->first_point());
B = *(curve->last_point());
@@ -188,16 +188,16 @@ KnotHolderEntityRotationAngle::knot_set(Geom::Point const &p, Geom::Point const
}
Geom::Point
-KnotHolderEntityStartingAngle::knot_get()
+KnotHolderEntityStartingAngle::knot_get() const
{
- LPECopyRotate* lpe = dynamic_cast<LPECopyRotate *>(_effect);
+ LPECopyRotate const *lpe = dynamic_cast<LPECopyRotate const*>(_effect);
return lpe->start_pos;
}
Geom::Point
-KnotHolderEntityRotationAngle::knot_get()
+KnotHolderEntityRotationAngle::knot_get() const
{
- LPECopyRotate* lpe = dynamic_cast<LPECopyRotate *>(_effect);
+ LPECopyRotate const *lpe = dynamic_cast<LPECopyRotate const*>(_effect);
return lpe->rot_pos;
}