summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorMarcus Hoffmann <bubu@bubu1.eu>2021-12-03 01:14:02 +0100
committerMarcus Hoffmann <bubu@bubu1.eu>2021-12-03 01:37:00 +0100
commit02aa87590b68e9daa5e1925806c27fa974a67208 (patch)
treea1ca46d23d912350846176e7685a831ea7933b37 /src/timeline
parentInputBar: apply clang-tidy const reference suggestions (diff)
downloadnheko-02aa87590b68e9daa5e1925806c27fa974a67208.tar.xz
InputBar: use character argument instead of string
Suggested-by:

Clang-Tidy: 'find' called with a string literal consisting of a
single character; consider using the more effective overload
accepting a character
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/InputBar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index feec2aa0..3e1ab1a1 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -301,7 +301,7 @@ InputBar::message(const QString& msg, MarkdownOverride useMarkdown, bool rainbow
         text.body = msg.trimmed().replace(conf::strings::matrixToMarkdownLink, "\\1").toStdString();
 
         // Don't send formatted_body, when we don't need to
-        if (text.formatted_body.find("<") == std::string::npos)
+        if (text.formatted_body.find('<') == std::string::npos)
             text.formatted_body = "";
         else
             text.format = "org.matrix.custom.html";