mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Return a default-constructed QString instead of implicitly converting an empty string literal.
This commit is contained in:
@@ -99,7 +99,7 @@ namespace BlackGui
|
||||
|
||||
QString CTextMessageTextEdit::toHtml(const CTextMessageList &messages, bool withFrom, bool withTo)
|
||||
{
|
||||
if (messages.isEmpty()) { return ""; }
|
||||
if (messages.isEmpty()) { return {}; }
|
||||
QString html("<table>");
|
||||
for (const CTextMessage &msg : messages)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user