diff --git a/scan/sanedialog.cpp b/scan/sanedialog.cpp --- a/scan/sanedialog.cpp +++ b/scan/sanedialog.cpp @@ -63,14 +63,14 @@ return true; } // need to select a scanner - m_openDev = m_ksanew->selectDevice(0); + m_openDev = m_ksanew->selectDevice(nullptr); if (m_openDev.isEmpty()) { // either no scanner was found or then cancel was pressed. return false; } if (m_ksanew->openDevice(m_openDev) == false) { // could not open the scanner - KMessageBox::sorry(0, i18n("Opening the selected scanner failed.")); + KMessageBox::sorry(nullptr, i18n("Opening the selected scanner failed.")); m_openDev = QString(); return false; } diff --git a/widgets/imagelib/effects/kpNumInput.cpp b/widgets/imagelib/effects/kpNumInput.cpp --- a/widgets/imagelib/effects/kpNumInput.cpp +++ b/widgets/imagelib/effects/kpNumInput.cpp @@ -50,9 +50,9 @@ q(q), column1Width(0), column2Width(0), - label(0), - slider(0), - labelAlignment(0) + label(nullptr), + slider(nullptr), + labelAlignment(nullptr) { } @@ -102,8 +102,8 @@ { if (label.isEmpty()) { delete d->label; - d->label = 0; - d->labelAlignment = 0; + d->label = nullptr; + d->labelAlignment = nullptr; } else { if (!d->label) { d->label = new QLabel(this); @@ -424,7 +424,7 @@ { public: kpDoubleNumInputPrivate() - : spin(0) {} + : spin(nullptr) {} QDoubleSpinBox *spin; QSize editSize; QString specialValue;