X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fbool.cpp;h=3e201cc4c6a1ffc8bdec2b940a8686fef9dc5e94;hp=c057d61ebcebc401ffe70122c751b8f164ca267e;hb=8ada6ef1319fa11fd594a34853967c1f9688913b;hpb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5 diff --git a/pv/prop/bool.cpp b/pv/prop/bool.cpp index c057d61e..3e201cc4 100644 --- a/pv/prop/bool.cpp +++ b/pv/prop/bool.cpp @@ -22,14 +22,14 @@ #include -#include "bool.h" +#include "bool.hpp" namespace pv { namespace prop { Bool::Bool(QString name, Getter getter, Setter setter) : Property(name, getter, setter), - check_box_(NULL) + check_box_(nullptr) { } @@ -43,11 +43,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>( variant).get();