summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-20 17:09:11 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-20 17:09:11 +0200
commitf95998a64bebcb12ffe07fcb6f23cdabff434641 (patch)
tree3a2388ebd9a271f59e3c8a8d36bb906c40fe3386 /include
parentScale down the preview image to fit in the application window (diff)
downloadnheko-f95998a64bebcb12ffe07fcb6f23cdabff434641.tar.xz
Be explicit about the captured parameters in lambdas
Diffstat (limited to 'include')
-rw-r--r--include/timeline/TimelineItem.h4
-rw-r--r--include/timeline/TimelineView.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/timeline/TimelineItem.h b/include/timeline/TimelineItem.h

index 793b9067..a80a42c0 100644 --- a/include/timeline/TimelineItem.h +++ b/include/timeline/TimelineItem.h
@@ -173,7 +173,7 @@ TimelineItem::setupLocalWidgetLayout(Widget *widget, headerLayout_->addLayout(widgetLayout); messageLayout_->addLayout(headerLayout_, 1); - AvatarProvider::resolve(userid, [=](const QImage &img) { setUserAvatar(img); }); + AvatarProvider::resolve(userid, [this](const QImage &img) { setUserAvatar(img); }); } else { setupSimpleLayout(); @@ -224,7 +224,7 @@ TimelineItem::setupWidgetLayout(Widget *widget, headerLayout_->addLayout(widgetLayout); messageLayout_->addLayout(headerLayout_, 1); - AvatarProvider::resolve(sender, [=](const QImage &img) { setUserAvatar(img); }); + AvatarProvider::resolve(sender, [this](const QImage &img) { setUserAvatar(img); }); } else { setupSimpleLayout(); diff --git a/include/timeline/TimelineView.h b/include/timeline/TimelineView.h
index 96d7690d..7a492de5 100644 --- a/include/timeline/TimelineView.h +++ b/include/timeline/TimelineView.h
@@ -134,7 +134,7 @@ private: { item->hide(); scroll_layout_->addWidget(item); - QTimer::singleShot(0, this, [=]() { item->show(); }); + QTimer::singleShot(0, this, [item]() { item->show(); }); }; //! Decides whether or not to show or hide the scroll down button.