mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
Return a default-constructed QString instead of implicitly converting an empty string literal.
This commit is contained in:
@@ -38,10 +38,10 @@ namespace BlackMisc
|
||||
{
|
||||
if (!this->getDbKey().isEmpty() && !this->getDescription().isEmpty())
|
||||
{
|
||||
return this->getDbKey() + " " + this->getDescription();
|
||||
return this->getDbKey() % u' ' % this->getDescription();
|
||||
}
|
||||
if (!this->getDbKey().isEmpty()) { return this->getDbKey(); }
|
||||
return "";
|
||||
return {};
|
||||
}
|
||||
|
||||
bool CDistributor::matchesKeyOrAlias(const QString &keyOrAlias) const
|
||||
|
||||
Reference in New Issue
Block a user