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
This commit is contained in:
parent
6d8d38490a
commit
02aa87590b
@ -301,7 +301,7 @@ InputBar::message(const QString& msg, MarkdownOverride useMarkdown, bool rainbow
|
|||||||
text.body = msg.trimmed().replace(conf::strings::matrixToMarkdownLink, "\\1").toStdString();
|
text.body = msg.trimmed().replace(conf::strings::matrixToMarkdownLink, "\\1").toStdString();
|
||||||
|
|
||||||
// Don't send formatted_body, when we don't need to
|
// 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 = "";
|
text.formatted_body = "";
|
||||||
else
|
else
|
||||||
text.format = "org.matrix.custom.html";
|
text.format = "org.matrix.custom.html";
|
||||||
|
Loading…
Reference in New Issue
Block a user