X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fprop%2Fint.cpp;h=415ee866f6f764df6b02761d6c337a05cdd13a85;hb=213db299f1a567e753fed6769fd36f309df9adee;hp=7fd4aeeffa2af3ceeb536a29f1365e5427f4484a;hpb=efdec55aec1a137460fa362a381ed1904182bfed;p=pulseview.git
diff --git a/pv/prop/int.cpp b/pv/prop/int.cpp
index 7fd4aee..415ee86 100644
--- a/pv/prop/int.cpp
+++ b/pv/prop/int.cpp
@@ -17,8 +17,8 @@
* along with this program; if not, see .
*/
-#include
-#include
+#include
+#include
#include
@@ -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);
@@ -158,5 +157,5 @@ void Int::on_value_changed(int)
commit();
}
-} // prop
-} // pv
+} // namespace prop
+} // namespace pv