From b5fbebdee9ad52de4b9b373998d91581b9fd9004 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 9 May 2008 17:06:59 +0000 Subject: complete adding const to have only NArtBpath const * get_bpath() const; for accessing the protected member of SPCurve. Nowhere in Inkscape source is the path data changed of SPCurve, except within SPCurve's own methods ! So removed the non-const NArtBpath* get_bpath. (bzr r5642) --- src/box3d-side.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/box3d-side.cpp') diff --git a/src/box3d-side.cpp b/src/box3d-side.cpp index 2fff9f7b5..4bd10e854 100644 --- a/src/box3d-side.cpp +++ b/src/box3d-side.cpp @@ -121,12 +121,12 @@ box3d_side_write (SPObject *object, Inkscape::XML::Node *repr, guint flags) sp_shape_set_shape ((SPShape *) object); /* Duplicate the path */ - SPCurve *curve = ((SPShape *) object)->curve; + SPCurve const *curve = ((SPShape *) object)->curve; //Nulls might be possible if this called iteratively if ( !curve ) { return NULL; } - NArtBpath *bpath = SP_CURVE_BPATH(curve); + NArtBpath const *bpath = SP_CURVE_BPATH(curve); if ( !bpath ) { return NULL; } -- cgit v1.2.3