diff options
author | David Robillard <d@drobilla.net> | 2020-12-15 13:19:38 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-15 18:32:12 +0100 |
commit | 93fee4579d013ba36d1eedc273fc2d9385d76e19 (patch) | |
tree | 4c39f4fb99cb3f55e8d8c4ade9232e5a42d75459 /ganv | |
parent | 2c17463cce43e5d9d846072e6a7d03f58760a607 (diff) | |
download | ganv-93fee4579d013ba36d1eedc273fc2d9385d76e19.tar.gz ganv-93fee4579d013ba36d1eedc273fc2d9385d76e19.tar.bz2 ganv-93fee4579d013ba36d1eedc273fc2d9385d76e19.zip |
Avoid "else" after "return"
Diffstat (limited to 'ganv')
-rw-r--r-- | ganv/wrap.hpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ganv/wrap.hpp b/ganv/wrap.hpp index 57e6da6..80aa0d2 100644 --- a/ganv/wrap.hpp +++ b/ganv/wrap.hpp @@ -85,9 +85,8 @@ private: \ virtual ret name() const { \ if (gobj()) { \ return Glib::wrap(prefix##_##name(gobj())); \ - } else { \ - return nullptr; \ } \ + return nullptr; \ } #define METHOD2(prefix, name, t1, a1, t2, a2) \ @@ -116,9 +115,8 @@ private: \ { \ if (gobj) { \ return static_cast<Ganv::Name*>(ganv_item_get_wrapper(GANV_ITEM(gobj))); \ - } else { \ - return nullptr; \ } \ + return nullptr; \ } \ /** Return a Ganv::CPPType wrapper for a CType. */ \ static inline const Ganv::Name* \ @@ -126,9 +124,8 @@ private: \ { \ if (gobj) { \ return static_cast<const Ganv::Name*>(ganv_item_get_wrapper(GANV_ITEM(gobj))); \ - } else { \ - return nullptr; \ } \ + return nullptr; \ } \ } |