From 2ce5faf460f92ee662edaa454dad001ef9e539f2 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Mon, 14 Jul 2008 23:01:40 +0000 Subject: make SPCurve constructors explicit. (so e.g. it is impossible to write SPCurve a = 1;) (bzr r6310) --- src/display/curve.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3