From c2590463bfdefdbf69f5e1503533c7b4852ac7cd Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Sun, 19 Aug 2012 00:11:19 +0200 Subject: As all subclasses of SPShape now have "virtual pads" with correct inheritance, the virtual function call to "onSetShape" was converted to C++ style. (bzr r11608.1.15) --- src/sp-shape.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/sp-shape.cpp') diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index e0f13c62d..87b1e7607 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -509,7 +509,6 @@ void SPShape::sp_shape_update_marker_view(SPShape *shape, Inkscape::DrawingItem void CShape::onModified(unsigned int flags) { SPShape* shape = this->spshape; - SPShape* object = shape; CLPEItem::onModified(flags); @@ -1081,9 +1080,7 @@ void CShape::onSetShape() { */ void SPShape::setShape() { - if (SP_SHAPE_CLASS (G_OBJECT_GET_CLASS (this))->set_shape) { - SP_SHAPE_CLASS (G_OBJECT_GET_CLASS (this))->set_shape (this); - } + this->cshape->onSetShape(); } /** -- cgit v1.2.3