X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fdouble.cpp;h=c5ab1db4e28b5a83b98f33f030fc0124b4bef727;hp=d059755843112be79d6e014672f05e0e31feb806;hb=4c60462b00cc329e61daedd1c2e66724077bd412;hpb=aa90e86b1c25f67ea64d7bec0560f531c67bc853 diff --git a/pv/prop/double.cpp b/pv/prop/double.cpp index d0597558..c5ab1db4 100644 --- a/pv/prop/double.cpp +++ b/pv/prop/double.cpp @@ -42,7 +42,7 @@ Double::Double(QString name, suffix_(suffix), range_(range), step_(step), - spin_box_(NULL) + spin_box_(nullptr) { } @@ -56,11 +56,11 @@ QWidget* Double::get_widget(QWidget *parent, bool auto_commit) return spin_box_; if (!getter_) - return NULL; + return nullptr; Glib::VariantBase variant = getter_(); if (!variant.gobj()) - return NULL; + return nullptr; double value = Glib::VariantBase::cast_dynamic>( variant).get();