Use auto to avoid duplicating the type name

This commit is contained in:
Luis Ángel San Martín
2019-05-31 20:58:06 +02:00
parent 923ad40057
commit bb334cfd50
55 changed files with 286 additions and 286 deletions

View File

@ -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;
}