summaryrefslogtreecommitdiffstats
path: root/ganv/wrap.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ganv/wrap.hpp')
-rw-r--r--ganv/wrap.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ganv/wrap.hpp b/ganv/wrap.hpp
index 4affe83..6e331df 100644
--- a/ganv/wrap.hpp
+++ b/ganv/wrap.hpp
@@ -115,7 +115,7 @@ private: \
wrap(Ganv##Name* gobj) \
{ \
if (gobj) { \
- return (Ganv::Name*)ganv_item_get_wrapper(GANV_ITEM(gobj)); \
+ return static_cast<Ganv::Name*>(ganv_item_get_wrapper(GANV_ITEM(gobj))); \
} else { \
return NULL; \
} \
@@ -125,7 +125,7 @@ private: \
wrap(const Ganv##Name* gobj) \
{ \
if (gobj) { \
- return (const Ganv::Name*)ganv_item_get_wrapper(GANV_ITEM(gobj)); \
+ return static_cast<const Ganv::Name*>(ganv_item_get_wrapper(GANV_ITEM(gobj))); \
} else { \
return NULL; \
} \