Fix lambda capture and lint issues

This commit is contained in:
redsky17 2019-06-11 22:34:15 -04:00
parent 756c7d1671
commit 71c1cbcfd1
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
2 changed files with 4 additions and 2 deletions

View file

@ -76,7 +76,7 @@ FilteredTextEdit::FilteredTextEdit(QWidget *parent)
&FilteredTextEdit::uploadData); &FilteredTextEdit::uploadData);
connect(this, &FilteredTextEdit::resultsRetrieved, this, &FilteredTextEdit::showResults); 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. // TODO: Show user avatar window.
nhlog::ui()->info("User selected: " + text.toStdString()); nhlog::ui()->info("User selected: " + text.toStdString());
}); });

View file

@ -690,7 +690,9 @@ TimelineView::updatePendingMessage(const std::string &txn_id, const QString &eve
} }
void 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_); auto with_sender = (lastSender_ != local_user_) || isDateDifference(lastMsgTimestamp_);