]> sigrok.org Git - pulseview.git/blobdiff - pv/prop/int.cpp
Random simplifications, cosmetics/whitespace/consistency fixes.
[pulseview.git] / pv / prop / int.cpp
index 789c26eb0236c9efb89c3c2291cd92e1a5d0e421..ce77b9592d3f66778ab6247b88b20cca32b9ca74 100644 (file)
@@ -90,7 +90,7 @@ QWidget* Int::get_widget(QWidget *parent, bool auto_commit)
                range_min = 0, range_max = UINT64_MAX;
        } else {
                // Unexpected value type.
-               assert(0);
+               assert(false);
        }
 
        // @todo Sigrok supports 64-bit quantities, but Qt does not have a
@@ -140,10 +140,9 @@ void Int::commit()
                new_value = g_variant_new_int64(spin_box_->value());
        else if (g_variant_type_equal(type, G_VARIANT_TYPE_UINT64))
                new_value = g_variant_new_uint64(spin_box_->value());
-       else
-       {
+       else {
                // Unexpected value type.
-               assert(0);
+               assert(false);
        }
 
        assert(new_value);