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:
@@ -541,7 +541,7 @@ namespace BlackCore
|
||||
|
||||
QString CSetupReader::getCmdLineBootstrapUrl() const
|
||||
{
|
||||
if (m_ignoreCmdBootstrapUrl) return "";
|
||||
if (m_ignoreCmdBootstrapUrl) return {};
|
||||
return sApp->getParserValue(m_cmdBootstrapUrl);
|
||||
}
|
||||
|
||||
@@ -635,12 +635,12 @@ namespace BlackCore
|
||||
{
|
||||
switch (m_bootstrapMode)
|
||||
{
|
||||
case CacheOnly: return "cache only";
|
||||
case Explicit: return "explicit";
|
||||
case Implicit: return "implicit";
|
||||
case CacheOnly: return QStringLiteral("cache only");
|
||||
case Explicit: return QStringLiteral("explicit");
|
||||
case Implicit: return QStringLiteral("implicit");
|
||||
default: break;
|
||||
}
|
||||
return "";
|
||||
return {};
|
||||
}
|
||||
|
||||
void CSetupReader::setLastSetupReadErrorMessages(const CStatusMessageList &messages)
|
||||
|
||||
Reference in New Issue
Block a user