Code

another c++ification for sp-object.h/cpp and still in progress...
[inkscape.git] / src / text-chemistry.cpp
index 5af97165e8004165da727093cee7dc2469ad647a..9d4c23b258d66ea5f1c468acae1c14f7f3f7d24d 100644 (file)
@@ -215,7 +215,7 @@ text_remove_from_path()
             continue;
         }
 
-        SPObject *tp = sp_object_first_child(SP_OBJECT(items->data));
+        SPObject *tp = SP_OBJECT(items->data)->first_child();
 
         did = true;
 
@@ -252,7 +252,7 @@ text_remove_all_kerns_recursively(SPObject *o)
         g_strfreev(xa_comma);
     }
 
-    for (SPObject *i = sp_object_first_child(o); i != NULL; i = SP_OBJECT_NEXT(i)) {
+    for (SPObject *i = o->first_child(); i != NULL; i = SP_OBJECT_NEXT(i)) {
         text_remove_all_kerns_recursively(i);
     }
 }