Code

return const reference when getting path data from lpe-PathParam!
authorjohanengelen <johanengelen@users.sourceforge.net>
Sun, 23 Mar 2008 19:32:08 +0000 (19:32 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sun, 23 Mar 2008 19:32:08 +0000 (19:32 +0000)
src/live_effects/parameter/path.cpp
src/live_effects/parameter/path.h

index 944fe3da74e943ddec1c9c46ac2200081a186977..028dd5e8b1dcea2c33c74c17f2affa7b525286e8 100644 (file)
@@ -54,7 +54,7 @@ PathParam::~PathParam()
     g_free(defvalue);
 }
 
-Geom::Piecewise<Geom::D2<Geom::SBasis> > &
+Geom::Piecewise<Geom::D2<Geom::SBasis> > const &
 PathParam::get_pwd2()
 {
     if (!referring) {
index 838543cd96f8b73df2c0f96ca5e37583e0c552ba..70f3cc20a5273051f6232303786c6e1684b5592f 100644 (file)
@@ -32,7 +32,7 @@ public:
                 const gchar * default_value = "M0,0 L1,1");
     virtual ~PathParam();
 
-    Geom::Piecewise<Geom::D2<Geom::SBasis> > & get_pwd2();
+    Geom::Piecewise<Geom::D2<Geom::SBasis> > const & get_pwd2();
 
     virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);