summaryrefslogtreecommitdiffstats
path: root/src/live_effects
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-01 00:14:53 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-01 00:14:53 +0000
commit25078fc60b120e877a7b79bc6f08fe2a0f45c3d7 (patch)
treea59731c3f66e5c0ec00d54f2a7eb25437271a2df /src/live_effects
parentPrepared exchange of casting macros. (diff)
downloadinkscape-25078fc60b120e877a7b79bc6f08fe2a0f45c3d7.tar.gz
inkscape-25078fc60b120e877a7b79bc6f08fe2a0f45c3d7.zip
Replaced all casting macros with glib-independent ones.
(bzr r11608.1.64)
Diffstat (limited to 'src/live_effects')
-rw-r--r--src/live_effects/lpeobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/live_effects/lpeobject.h b/src/live_effects/lpeobject.h
index f360d7bdd..02513d258 100644
--- a/src/live_effects/lpeobject.h
+++ b/src/live_effects/lpeobject.h
@@ -23,8 +23,8 @@ namespace Inkscape {
}
#define TYPE_LIVEPATHEFFECT (LivePathEffectObject::livepatheffect_get_type())
-#define LIVEPATHEFFECT(o) (G_TYPE_CHECK_INSTANCE_CAST((o), TYPE_LIVEPATHEFFECT, LivePathEffectObject))
-#define IS_LIVEPATHEFFECT(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), TYPE_LIVEPATHEFFECT))
+#define LIVEPATHEFFECT(obj) ((LivePathEffectObject*)obj)
+#define IS_LIVEPATHEFFECT(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(LivePathEffectObject)))
/// The LivePathEffect vtable.
struct LivePathEffectObjectClass {