projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MainBar: Change calling order and flag usage for sample count, too
[pulseview.git]
/
pv
/
prop
/
int.cpp
diff --git
a/pv/prop/int.cpp
b/pv/prop/int.cpp
index 55b7ab3e09fa8bd4f00cb37ff4886a5f795d7fb3..31f518a8cbd481467d0e5195861058989574ae28 100644
(file)
--- a/
pv/prop/int.cpp
+++ b/
pv/prop/int.cpp
@@
-41,7
+41,7
@@
Int::Int(QString name,
Property(name, getter, setter),
suffix_(suffix),
range_(range),
Property(name, getter, setter),
suffix_(suffix),
range_(range),
- spin_box_(
NULL
)
+ spin_box_(
nullptr
)
{
}
{
}
@@
-57,13
+57,13
@@
QWidget* Int::get_widget(QWidget *parent, bool auto_commit)
return spin_box_;
if (!getter_)
return spin_box_;
if (!getter_)
- return
NULL
;
+ return
nullptr
;
value_ = getter_();
GVariant *value = value_.gobj();
if (!value)
value_ = getter_();
GVariant *value = value_.gobj();
if (!value)
- return
NULL
;
+ return
nullptr
;
spin_box_ = new QSpinBox(parent);
spin_box_->setSuffix(suffix_);
spin_box_ = new QSpinBox(parent);
spin_box_->setSuffix(suffix_);
@@
-141,7
+141,7
@@
void Int::commit()
if (!spin_box_)
return;
if (!spin_box_)
return;
- GVariant *new_value =
NULL
;
+ GVariant *new_value =
nullptr
;
const GVariantType *const type = g_variant_get_type(value_.gobj());
assert(type);
const GVariantType *const type = g_variant_get_type(value_.gobj());
assert(type);