X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fdouble.cpp;h=f453cf178a7fb3e8034022f6d575e667dd3d2575;hp=d059755843112be79d6e014672f05e0e31feb806;hb=efdec55aec1a137460fa362a381ed1904182bfed;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329 diff --git a/pv/prop/double.cpp b/pv/prop/double.cpp index d059755..f453cf1 100644 --- a/pv/prop/double.cpp +++ b/pv/prop/double.cpp @@ -14,8 +14,7 @@ * 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 @@ -42,11 +41,7 @@ Double::Double(QString name, suffix_(suffix), range_(range), step_(step), - spin_box_(NULL) -{ -} - -Double::~Double() + spin_box_(nullptr) { } @@ -56,11 +51,11 @@ QWidget* Double::get_widget(QWidget *parent, bool auto_commit) return spin_box_; if (!getter_) - return NULL; + return nullptr; Glib::VariantBase variant = getter_(); if (!variant.gobj()) - return NULL; + return nullptr; double value = Glib::VariantBase::cast_dynamic>( variant).get();