Consistenty use auto-generated namespace comments.
[pulseview.git] / pv / binding / decoder.cpp
index c5d014879f51d9580ab249328e387356fe6e4a09..39bff52bf0cb55f3ee29aba01995a275769ab2c4 100644 (file)
@@ -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)
@@ -143,5 +140,5 @@ void Decoder::setter(const char *id, Glib::VariantBase value)
        decoder_stack_->begin_decode();
 }
 
-} // binding
-} // pv
+}  // namespace binding
+}  // namespace pv