projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use bool literals for boolean values.
[pulseview.git]
/
pv
/
prop
/
int.cpp
diff --git
a/pv/prop/int.cpp
b/pv/prop/int.cpp
index 7fd4aeeffa2af3ceeb536a29f1365e5427f4484a..d791bd96b05d0846b40d52dc476fdddec135420d 100644
(file)
--- a/
pv/prop/int.cpp
+++ b/
pv/prop/int.cpp
@@
-17,8
+17,8
@@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#include <
stdint.h
>
-#include <
assert.h
>
+#include <
cstdint
>
+#include <
cassert
>
#include <QSpinBox>
#include <QSpinBox>
@@
-90,7
+90,7
@@
QWidget* Int::get_widget(QWidget *parent, bool auto_commit)
range_min = 0, range_max = UINT64_MAX;
} else {
// Unexpected value type.
range_min = 0, range_max = UINT64_MAX;
} else {
// Unexpected value type.
- assert(
0
);
+ assert(
false
);
}
// @todo Sigrok supports 64-bit quantities, but Qt does not have a
}
// @todo Sigrok supports 64-bit quantities, but Qt does not have a
@@
-143,7
+143,7
@@
void Int::commit()
else
{
// Unexpected value type.
else
{
// Unexpected value type.
- assert(
0
);
+ assert(
false
);
}
assert(new_value);
}
assert(new_value);