projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Random simplifications, cosmetics/whitespace/consistency fixes.
[pulseview.git]
/
pv
/
binding
/
decoder.cpp
diff --git
a/pv/binding/decoder.cpp
b/pv/binding/decoder.cpp
index c5d014879f51d9580ab249328e387356fe6e4a09..b968ab7995e31227780169b65d4bb2a95b1397ff 100644
(file)
--- a/
pv/binding/decoder.cpp
+++ b/
pv/binding/decoder.cpp
@@
-128,10
+128,7
@@
Glib::VariantBase Decoder::getter(const char *id)
}
}
- if (val)
- return Glib::VariantBase(val, true);
- else
- return Glib::VariantBase();
+ return (val) ? Glib::VariantBase(val, true) : Glib::VariantBase();
}
void Decoder::setter(const char *id, Glib::VariantBase value)