From 71c1cbcfd134649c5ab7c8be403581a1fed6440d Mon Sep 17 00:00:00 2001 From: redsky17 Date: Tue, 11 Jun 2019 22:34:15 -0400 Subject: [PATCH] Fix lambda capture and lint issues --- src/TextInputWidget.cpp | 2 +- src/timeline/TimelineView.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp index b4251a0e..7971ab43 100644 --- a/src/TextInputWidget.cpp +++ b/src/TextInputWidget.cpp @@ -76,7 +76,7 @@ FilteredTextEdit::FilteredTextEdit(QWidget *parent) &FilteredTextEdit::uploadData); connect(this, &FilteredTextEdit::resultsRetrieved, this, &FilteredTextEdit::showResults); - connect(&replyPopup_, &ReplyPopup::userSelected, this, [this](const QString &text) { + connect(&replyPopup_, &ReplyPopup::userSelected, this, [](const QString &text) { // TODO: Show user avatar window. nhlog::ui()->info("User selected: " + text.toStdString()); }); diff --git a/src/timeline/TimelineView.cpp b/src/timeline/TimelineView.cpp index ee7021d8..6d947c15 100644 --- a/src/timeline/TimelineView.cpp +++ b/src/timeline/TimelineView.cpp @@ -690,7 +690,9 @@ TimelineView::updatePendingMessage(const std::string &txn_id, const QString &eve } void -TimelineView::addUserMessage(mtx::events::MessageType ty, const QString &body, const QString &related_event) +TimelineView::addUserMessage(mtx::events::MessageType ty, + const QString &body, + const QString &related_event) { auto with_sender = (lastSender_ != local_user_) || isDateDifference(lastMsgTimestamp_);