diff options
author | Marcus Hoffmann <bubu@bubu1.eu> | 2021-12-03 01:14:02 +0100 |
---|---|---|
committer | Marcus Hoffmann <bubu@bubu1.eu> | 2021-12-03 01:37:00 +0100 |
commit | 02aa87590b68e9daa5e1925806c27fa974a67208 (patch) | |
tree | a1ca46d23d912350846176e7685a831ea7933b37 /src/timeline | |
parent | InputBar: apply clang-tidy const reference suggestions (diff) | |
download | nheko-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.cpp | 2 |
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"; |