diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-01 00:14:53 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-01 00:14:53 +0000 |
| commit | 25078fc60b120e877a7b79bc6f08fe2a0f45c3d7 (patch) | |
| tree | a59731c3f66e5c0ec00d54f2a7eb25437271a2df /src/sp-tref.h | |
| parent | Prepared exchange of casting macros. (diff) | |
| download | inkscape-25078fc60b120e877a7b79bc6f08fe2a0f45c3d7.tar.gz inkscape-25078fc60b120e877a7b79bc6f08fe2a0f45c3d7.zip | |
Replaced all casting macros with glib-independent ones.
(bzr r11608.1.64)
Diffstat (limited to 'src/sp-tref.h')
| -rw-r--r-- | src/sp-tref.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sp-tref.h b/src/sp-tref.h index 17ec2f591..e953a95be 100644 --- a/src/sp-tref.h +++ b/src/sp-tref.h @@ -23,10 +23,8 @@ /* tref base class */ #define SP_TYPE_TREF (sp_tref_get_type()) -#define SP_TREF(o) (G_TYPE_CHECK_INSTANCE_CAST((o), SP_TYPE_TREF, SPTRef)) -#define SP_TREF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), SP_TYPE_TREF, SPTSpanClass)) -#define SP_IS_TREF(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), SP_TYPE_TREF)) -#define SP_IS_TREF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SP_TYPE_TREF)) +#define SP_TREF(obj) ((SPTRef*)obj) +#define SP_IS_TREF(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPTRef))) class CTRef; |
