From bb290f9fecc48d407c2bc75a64b0e8a94bc3aeba Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 28 Dec 2021 22:30:12 +0100 Subject: Fix more warnings and remove dead code --- src/timeline/InputBar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/timeline/InputBar.cpp') diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index edc21e54..304e00db 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -324,7 +324,8 @@ InputBar::message(const QString &msg, MarkdownOverride useMarkdown, bool rainbow QString body; bool firstLine = true; - for (auto line : related.quoted_body.splitRef(u'\n')) { + auto lines = related.quoted_body.splitRef(u'\n'); + for (auto line : qAsConst(lines)) { if (firstLine) { firstLine = false; body = QString("> <%1> %2\n").arg(related.quoted_user, line); -- cgit 1.5.1