mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Return a default-constructed QString instead of implicitly converting an empty string literal.
This commit is contained in:
@@ -221,7 +221,7 @@ namespace BlackMisc
|
||||
|
||||
QString CStatusMessageList::toHtml(const CPropertyIndexList &indexes) const
|
||||
{
|
||||
if (indexes.isEmpty() || this->isEmpty()) { return ""; }
|
||||
if (indexes.isEmpty() || this->isEmpty()) { return {}; }
|
||||
QString html;
|
||||
int line = 1;
|
||||
const bool withLineNumbers = indexes.contains(CPropertyIndex::GlobalIndexLineNumber);
|
||||
|
||||
Reference in New Issue
Block a user