summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-28 22:30:12 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-28 22:30:12 +0100
commitbb290f9fecc48d407c2bc75a64b0e8a94bc3aeba (patch)
tree4a663d6987c615c9c2b01bec903bfe125ee58cf3 /src/timeline/InputBar.cpp
parentRemove unused button class (diff)
downloadnheko-bb290f9fecc48d407c2bc75a64b0e8a94bc3aeba.tar.xz
Fix more warnings and remove dead code
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp3
1 files changed, 2 insertions, 1 deletions
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);