summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-01 21:04:54 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-01 21:04:54 +0000
commit7eb077e4097aed62c11e5b4e97ff4b16039e73fa (patch)
tree9febff369feb724dd8e10ac5a8327897dfad35a8 /src/sp-object.cpp
parentReplaced all casting macros with glib-independent ones. (diff)
downloadinkscape-7eb077e4097aed62c11e5b4e97ff4b16039e73fa.tar.gz
inkscape-7eb077e4097aed62c11e5b4e97ff4b16039e73fa.zip
Replaced calls to g_object_(un)ref with sp_object_(un)ref.
(bzr r11608.1.65)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index 82f3f1c81..0ba74990e 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -416,7 +416,7 @@ GSList *SPObject::childList(bool add_ref, Action) {
GSList *l = NULL;
for ( SPObject *child = firstChild() ; child; child = child->getNext() ) {
if (add_ref) {
- g_object_ref (G_OBJECT (child));
+ sp_object_ref (child);
}
l = g_slist_prepend (l, child);
@@ -1230,12 +1230,12 @@ void SPObject::emitModified(unsigned int flags)
* themselves. */
this->mflags = 0;
- g_object_ref(G_OBJECT(this));
+ sp_object_ref(this);
this->cobject->modified(flags);
_modified_signal.emit(this, flags);
- g_object_unref(G_OBJECT(this));
+ sp_object_unref(this);
}
gchar const *SPObject::getTagName(SPException *ex) const