Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit dac1c880 authored by Laurent Montel's avatar Laurent Montel 😁

Fix some warning

parent 1f271ec9
......@@ -189,7 +189,7 @@ void StyledCalendarDelegate::paint(QPainter *painter, const QStyleOptionViewItem
if (action == Enable && !showButtons && enabled == Qt::PartiallyChecked) {
buttonOption.state = QStyle::State_Active;
}
s->drawControl(QStyle::CE_PushButton, &buttonOption, painter, 0);
s->drawControl(QStyle::CE_PushButton, &buttonOption, painter, nullptr);
} else {
QStyleOptionButton buttonOption = buttonOpt(opt, QPixmap(), i);
buttonOption.features = QStyleOptionButton::Flat;
......@@ -197,7 +197,7 @@ void StyledCalendarDelegate::paint(QPainter *painter, const QStyleOptionViewItem
if (col.statistics().count() > 0) {
buttonOption.text = QString::number(col.statistics().count());
}
s->drawControl(QStyle::CE_PushButton, &buttonOption, painter, 0);
s->drawControl(QStyle::CE_PushButton, &buttonOption, painter, nullptr);
}
i++;
}
......
......@@ -290,12 +290,12 @@ Controller::Controller(ReparentingModel *personModel, ReparentingModel *searchMo
void Controller::setSearchString(const QString &searchString)
{
if (mCollectionSearchJob) {
disconnect(mCollectionSearchJob, 0, this, 0);
disconnect(mCollectionSearchJob, nullptr, this, nullptr);
mCollectionSearchJob->kill(KJob::Quietly);
mCollectionSearchJob = nullptr;
}
if (mPersonSearchJob) {
disconnect(mPersonSearchJob, 0, this, 0);
disconnect(mPersonSearchJob, nullptr, this, nullptr);
mPersonSearchJob->kill(KJob::Quietly);
mPersonSearchJob = nullptr;
}
......
......@@ -50,7 +50,7 @@
class FreebusyViewCalendar : public EventViews::ViewCalendar
{
public:
virtual ~FreebusyViewCalendar()
~FreebusyViewCalendar() override
{
}
......
......@@ -398,7 +398,7 @@ ReparentingModel::Node *ReparentingModel::getReparentNode(const QModelIndex &sou
return proxyNode.data();
}
}
return 0;
return nullptr;
}
ReparentingModel::Node *ReparentingModel::getParentNode(const QModelIndex &sourceIndex)
......@@ -410,7 +410,7 @@ ReparentingModel::Node *ReparentingModel::getParentNode(const QModelIndex &sourc
if (proxyIndex.isValid()) {
return extractNode(proxyIndex);
}
return 0;
return nullptr;
}
void ReparentingModel::appendSourceNode(Node *parentNode, const QModelIndex &sourceIndex,
......@@ -459,7 +459,7 @@ void ReparentingModel::removeDuplicates(const QModelIndex &sourceIndex)
const int targetRow = proxyNode->row();
beginRemoveRows(index(proxyNode->parent), targetRow, targetRow);
proxyNode->parent->children.remove(targetRow);
proxyNode->parent = 0;
proxyNode->parent = nullptr;
endRemoveRows();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment