Code

make SPCurve constructors explicit. (so e.g. it is impossible to write SPCurve a...
authorjohanengelen <johanengelen@users.sourceforge.net>
Mon, 14 Jul 2008 23:01:40 +0000 (23:01 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Mon, 14 Jul 2008 23:01:40 +0000 (23:01 +0000)
src/display/curve.h

index 6697987cafe9fd2cc48a7e41486f8a66cad05bf7..b2b1559af75a9cd02691182dbf3ab83ba26cc1ce 100644 (file)
@@ -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);