diff options
author | David Robillard <d@drobilla.net> | 2020-07-30 20:54:49 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-30 20:55:28 +0200 |
commit | 473d9bd0cb085dee2fc73506ccdfce990aeee147 (patch) | |
tree | 3d57ab4200c29b7542bd1f830653acebd5c2a2c8 /ganv/wrap.hpp | |
parent | e75c1e1873165e269c78d624d194fd165756837d (diff) | |
download | ganv-473d9bd0cb085dee2fc73506ccdfce990aeee147.tar.gz ganv-473d9bd0cb085dee2fc73506ccdfce990aeee147.tar.bz2 ganv-473d9bd0cb085dee2fc73506ccdfce990aeee147.zip |
Use modern casts in C++ code
Diffstat (limited to 'ganv/wrap.hpp')
-rw-r--r-- | ganv/wrap.hpp | 4 |
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; \ } \ |