From d955f60393f4f85b0269346f37b4481a1c70205a Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Mon, 5 May 2008 19:00:20 +0000 Subject: struct SPCurve => class SPCurve change all sp_curve_methods functions to SPCurve::methods. (bzr r5609) --- src/sp-shape.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/sp-shape.cpp') diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index e45245793..99ebdbe23 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -199,7 +199,7 @@ sp_shape_release (SPObject *object) } } if (shape->curve) { - shape->curve = sp_curve_unref (shape->curve); + shape->curve = shape->curve->unref(); } if (((SPObjectClass *) parent_class)->release) { @@ -991,13 +991,13 @@ void sp_shape_set_curve (SPShape *shape, SPCurve *curve, unsigned int owner) { if (shape->curve) { - shape->curve = sp_curve_unref (shape->curve); + shape->curve = shape->curve->unref(); } if (curve) { if (owner) { - shape->curve = sp_curve_ref (curve); + shape->curve = curve->ref(); } else { - shape->curve = sp_curve_copy (curve); + shape->curve = curve->copy(); } } SP_OBJECT(shape)->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); @@ -1010,7 +1010,7 @@ SPCurve * sp_shape_get_curve (SPShape *shape) { if (shape->curve) { - return sp_curve_copy (shape->curve); + return shape->curve->copy(); } return NULL; } @@ -1022,13 +1022,13 @@ void sp_shape_set_curve_insync (SPShape *shape, SPCurve *curve, unsigned int owner) { if (shape->curve) { - shape->curve = sp_curve_unref (shape->curve); + shape->curve = shape->curve->unref(); } if (curve) { if (owner) { - shape->curve = sp_curve_ref (curve); + shape->curve = curve->ref(); } else { - shape->curve = sp_curve_copy (curve); + shape->curve = curve->copy(); } } } -- cgit v1.2.3