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/sp-offset.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp-offset.cpp') diff --git a/src/sp-offset.cpp b/src/sp-offset.cpp index d866df068..5ff01814f 100644 --- a/src/sp-offset.cpp +++ b/src/sp-offset.cpp @@ -86,7 +86,7 @@ static gchar *sp_offset_description (SPItem * item); static void sp_offset_snappoints(SPItem const *item, SnapPointsIter p); static void sp_offset_set_shape (SPShape * shape); -Path *bpath_to_liv_path (NArtBpath * bpath); +Path *bpath_to_liv_path (NArtBpath const * bpath); static void refresh_offset_source(SPOffset* offset); @@ -444,7 +444,7 @@ sp_offset_description(SPItem *item) * livarot Path. Duplicate of splivarot. */ Path * -bpath_to_liv_path(NArtBpath *bpath) +bpath_to_liv_path(NArtBpath const *bpath) { if (bpath == NULL) return NULL; -- cgit v1.2.3