mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Return a default-constructed QString instead of implicitly converting an empty string literal.
This commit is contained in:
@@ -532,7 +532,7 @@ namespace BlackGui
|
||||
QString CTextMessageComponent::textMessageToCommand(const QString &enteredLine)
|
||||
{
|
||||
// only if visible
|
||||
if (enteredLine.isEmpty()) { return ""; }
|
||||
if (enteredLine.isEmpty()) { return {}; }
|
||||
|
||||
const int index = ui->tw_TextMessages->currentIndex();
|
||||
QString cmd(".msg ");
|
||||
|
||||
Reference in New Issue
Block a user