X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fbool.cpp;h=61b2f17adaa9848cc28d6735a49cbff3d024001a;hp=c057d61ebcebc401ffe70122c751b8f164ca267e;hb=efdec55aec1a137460fa362a381ed1904182bfed;hpb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5 diff --git a/pv/prop/bool.cpp b/pv/prop/bool.cpp index c057d61..61b2f17 100644 --- a/pv/prop/bool.cpp +++ b/pv/prop/bool.cpp @@ -14,26 +14,21 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #include #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) -{ -} - -Bool::~Bool() + check_box_(nullptr) { } @@ -43,11 +38,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();