Code

Merge and cleanup of GSoC C++-ification project.
[inkscape.git] / src / filters / offset.cpp
index 2db9316500c1e46e4566c60d82f378bd94d191ec..48ee895dc88d9c0657ca3f5999d37949db8d82de 100644 (file)
@@ -1,5 +1,3 @@
-#define __SP_FEOFFSET_CPP__
-
 /** \file
  * SVG <feOffset> implementation.
  *
@@ -8,6 +6,7 @@
  * Authors:
  *   hugo Rodrigues <haa.rodrigues@gmail.com>
  *   Niko Kiirala <niko@kiirala.com>
+ *   Abhishek Sharma
  *
  * Copyright (C) 2006,2007 authors
  *
@@ -96,8 +95,8 @@ sp_feOffset_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *r
         ((SPObjectClass *) feOffset_parent_class)->build(object, document, repr);
     }
 
-    sp_object_read_attr(object, "dx");
-    sp_object_read_attr(object, "dy");
+    object->readAttr( "dx" );
+    object->readAttr( "dy" );
 }
 
 /**
@@ -151,8 +150,8 @@ static void
 sp_feOffset_update(SPObject *object, SPCtx *ctx, guint flags)
 {
     if (flags & SP_OBJECT_MODIFIED_FLAG) {
-        sp_object_read_attr(object, "dx");
-        sp_object_read_attr(object, "dy");
+        object->readAttr( "dx" );
+        object->readAttr( "dy" );
     }
 
     if (((SPObjectClass *) feOffset_parent_class)->update) {