summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-15 13:19:38 +0100
committerDavid Robillard <d@drobilla.net>2020-12-15 18:32:12 +0100
commit93fee4579d013ba36d1eedc273fc2d9385d76e19 (patch)
tree4c39f4fb99cb3f55e8d8c4ade9232e5a42d75459
parent2c17463cce43e5d9d846072e6a7d03f58760a607 (diff)
downloadganv-93fee4579d013ba36d1eedc273fc2d9385d76e19.tar.gz
ganv-93fee4579d013ba36d1eedc273fc2d9385d76e19.tar.bz2
ganv-93fee4579d013ba36d1eedc273fc2d9385d76e19.zip
Avoid "else" after "return"
-rw-r--r--ganv/wrap.hpp9
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; \
} \
}