X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fstring.cpp;h=23c7f91321d567bbc59c31bad53b139cd8f1728a;hp=b8ecf738630bdea67568e9781357211145215db8;hb=870ea3dbf35b182e120c5d84ab89bf9cb7691232;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329 diff --git a/pv/prop/string.cpp b/pv/prop/string.cpp index b8ecf738..23c7f913 100644 --- a/pv/prop/string.cpp +++ b/pv/prop/string.cpp @@ -14,11 +14,10 @@ * 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 #include @@ -36,7 +35,7 @@ String::String(QString name, Getter getter, Setter setter) : Property(name, getter, setter), - line_edit_(NULL) + line_edit_(nullptr) { } @@ -46,11 +45,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(); @@ -81,5 +80,5 @@ void String::on_text_edited(const QString&) commit(); } -} // prop -} // pv +} // namespace prop +} // namespace pv