X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fprop%2Fdouble.cpp;h=eeb13fdd37e8e366011a0da1fafe14fd72cef77f;hb=53bb2e1de75f5cca9244efc83c4e77a222e322f4;hp=d8a7a2920c5b1f0644ea5d8f33606aebf7286b7a;hpb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;p=pulseview.git
diff --git a/pv/prop/double.cpp b/pv/prop/double.cpp
index d8a7a29..eeb13fd 100644
--- a/pv/prop/double.cpp
+++ b/pv/prop/double.cpp
@@ -14,15 +14,14 @@
* 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 "double.h"
+#include "double.hpp"
using boost::optional;
using std::pair;
@@ -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();