Use nullptr instead of 0

This commit is contained in:
Luis Ángel San Martín
2019-05-31 20:10:35 +02:00
parent 2fe3fcf041
commit 923ad40057
17 changed files with 39 additions and 39 deletions

View File

@ -68,7 +68,7 @@ void NotificationsLabelWidget::setText(const QString &text)
void NotificationsLabelWidget::updatePosition()
{
QWidget *parent = dynamic_cast<QWidget *>(this->parent());
if (parent == 0) {
if (parent == nullptr) {
return;
}
move(QPoint((parent->geometry().size().width() - this->width()) / 2, (parent->geometry().size().height() - this->height()) / 2));