X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fstring.cpp;fp=pv%2Fprop%2Fstring.cpp;h=e7af45973cc92950aef95c8c4ba50d0357b8132b;hp=b8ecf738630bdea67568e9781357211145215db8;hb=4c60462b00cc329e61daedd1c2e66724077bd412;hpb=aa90e86b1c25f67ea64d7bec0560f531c67bc853 diff --git a/pv/prop/string.cpp b/pv/prop/string.cpp index b8ecf738..e7af4597 100644 --- a/pv/prop/string.cpp +++ b/pv/prop/string.cpp @@ -36,7 +36,7 @@ String::String(QString name, Getter getter, Setter setter) : Property(name, getter, setter), - line_edit_(NULL) + line_edit_(nullptr) { } @@ -46,11 +46,11 @@ QWidget* String::get_widget(QWidget *parent, bool auto_commit) return line_edit_; if (!getter_) - return NULL; + return nullptr; Glib::VariantBase variant = getter_(); if (!variant.gobj()) - return NULL; + return nullptr; string value = Glib::VariantBase::cast_dynamic>( variant).get();