mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Use auto to avoid duplicating the type name
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
NotificationsLabelWidget::NotificationsLabelWidget(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
QVBoxLayout *layout = new QVBoxLayout;
|
||||
auto layout = new QVBoxLayout;
|
||||
layout->setSpacing(0);
|
||||
layout->setMargin(0);
|
||||
|
||||
@ -67,7 +67,7 @@ void NotificationsLabelWidget::setText(const QString &text)
|
||||
|
||||
void NotificationsLabelWidget::updatePosition()
|
||||
{
|
||||
QWidget *parent = dynamic_cast<QWidget *>(this->parent());
|
||||
auto parent = dynamic_cast<QWidget *>(this->parent());
|
||||
if (parent == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user