summaryrefslogtreecommitdiffstats
path: root/src/controllers/delegates/midibytedelegate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/delegates/midibytedelegate.cpp')
-rw-r--r--src/controllers/delegates/midibytedelegate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controllers/delegates/midibytedelegate.cpp b/src/controllers/delegates/midibytedelegate.cpp
index 8739c66029..23be28698b 100644
--- a/src/controllers/delegates/midibytedelegate.cpp
+++ b/src/controllers/delegates/midibytedelegate.cpp
@@ -31,7 +31,7 @@ void MidiByteDelegate::setEditorData(QWidget* editor,
const QModelIndex& index) const {
int control = index.data(Qt::EditRole).toInt();
HexSpinBox* pSpinBox = qobject_cast<HexSpinBox*>(editor);
- if (pSpinBox == NULL) {
+ if (pSpinBox == nullptr) {
return;
}
pSpinBox->setValue(control);
@@ -41,7 +41,7 @@ void MidiByteDelegate::setModelData(QWidget* editor,
QAbstractItemModel* model,
const QModelIndex& index) const {
HexSpinBox* pSpinBox = qobject_cast<HexSpinBox*>(editor);
- if (pSpinBox == NULL) {
+ if (pSpinBox == nullptr) {
return;
}
model->setData(index, pSpinBox->value(), Qt::EditRole);