]> sigrok.org Git - pulseview.git/blobdiff - pv/prop/bool.cpp
Use the 'default' keyword where applicable. This patch
[pulseview.git] / pv / prop / bool.cpp
index e3e0ebd50e86151408b14fe7420167a2e2db054a..3281de78cbf90841e7480c238fa8781ebeef9c36 100644 (file)
@@ -29,11 +29,7 @@ namespace prop {
 
 Bool::Bool(QString name, Getter getter, Setter setter) :
        Property(name, getter, setter),
-       check_box_(NULL)
-{
-}
-
-Bool::~Bool()
+       check_box_(nullptr)
 {
 }
 
@@ -43,11 +39,11 @@ QWidget* Bool::get_widget(QWidget *parent, bool auto_commit)
                return check_box_;
 
        if (!getter_)
-               return NULL;
+               return nullptr;
 
        Glib::VariantBase variant = getter_();
        if (!variant.gobj())
-               return NULL;
+               return nullptr;
 
        bool value = Glib::VariantBase::cast_dynamic<Glib::Variant<bool>>(
                variant).get();