mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Use nullptr instead of 0
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user