diff --git a/src/widget/emoticonswidget.cpp b/src/widget/emoticonswidget.cpp index 574929f8f..55a34a354 100644 --- a/src/widget/emoticonswidget.cpp +++ b/src/widget/emoticonswidget.cpp @@ -171,8 +171,7 @@ void EmoticonsWidget::wheelEvent(QWheelEvent* e) void EmoticonsWidget::PageButtonsUpdate() { QList pageButtons = this->findChildren(QString()); - QRadioButton* t_pageButton; - foreach (t_pageButton, pageButtons) { + foreach (QRadioButton* t_pageButton, pageButtons) { if (t_pageButton->property("pageIndex").toInt() == stack.currentIndex()) t_pageButton->setChecked(true); else diff --git a/src/widget/flowlayout.cpp b/src/widget/flowlayout.cpp index 336b110b6..b38dc0aef 100644 --- a/src/widget/flowlayout.cpp +++ b/src/widget/flowlayout.cpp @@ -132,8 +132,7 @@ QSize FlowLayout::sizeHint() const QSize FlowLayout::minimumSize() const { QSize size; - QLayoutItem* item; - foreach (item, itemList) + foreach (QLayoutItem* item, itemList) size = size.expandedTo(item->minimumSize()); size += QSize(2 * margin(), 2 * margin());