summaryrefslogtreecommitdiffstats
path: root/src/display/curve.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-14 23:01:40 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-14 23:01:40 +0000
commit2ce5faf460f92ee662edaa454dad001ef9e539f2 (patch)
tree9ef42aaafa3c504b94509fdae709dd560463dd90 /src/display/curve.h
parentfix conversion from pathvector to livarot path. (a.o. caused crash of nodetoo... (diff)
downloadinkscape-2ce5faf460f92ee662edaa454dad001ef9e539f2.tar.gz
inkscape-2ce5faf460f92ee662edaa454dad001ef9e539f2.zip
make SPCurve constructors explicit. (so e.g. it is impossible to write SPCurve a = 1;)
(bzr r6310)
Diffstat (limited to 'src/display/curve.h')
-rw-r--r--src/display/curve.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/curve.h b/src/display/curve.h
index 6697987ca..b2b1559af 100644
--- a/src/display/curve.h
+++ b/src/display/curve.h
@@ -31,8 +31,8 @@ struct SPObject;
class SPCurve {
public:
/* Constructors */
- SPCurve(guint length = SP_CURVE_LENSTEP);
- SPCurve(Geom::PathVector const& pathv);
+ explicit SPCurve(guint length = SP_CURVE_LENSTEP);
+ explicit SPCurve(Geom::PathVector const& pathv);
static SPCurve * new_from_bpath(NArtBpath *bpath);
static SPCurve * new_from_foreign_bpath(NArtBpath const *bpath);
static SPCurve * new_from_rect(Geom::Rect const &rect);