From: johanengelen Date: Sun, 23 Mar 2008 19:32:08 +0000 (+0000) Subject: return const reference when getting path data from lpe-PathParam! X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3cc77bbe681dd68bde92a2c4796cd5020aecb214;p=inkscape.git return const reference when getting path data from lpe-PathParam! --- diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 944fe3da7..028dd5e8b 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -54,7 +54,7 @@ PathParam::~PathParam() g_free(defvalue); } -Geom::Piecewise > & +Geom::Piecewise > const & PathParam::get_pwd2() { if (!referring) { diff --git a/src/live_effects/parameter/path.h b/src/live_effects/parameter/path.h index 838543cd9..70f3cc20a 100644 --- a/src/live_effects/parameter/path.h +++ b/src/live_effects/parameter/path.h @@ -32,7 +32,7 @@ public: const gchar * default_value = "M0,0 L1,1"); virtual ~PathParam(); - Geom::Piecewise > & get_pwd2(); + Geom::Piecewise > const & get_pwd2(); virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);