mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Return a default-constructed QString instead of implicitly converting an empty string literal.
This commit is contained in:
@@ -67,9 +67,9 @@ namespace BlackMisc
|
||||
{
|
||||
static const BlackMisc::CSettingReadOnly<TModelConverterXBinary> setting(new QObject());
|
||||
const QString mcx = setting.get();
|
||||
if (mcx.isEmpty()) return "";
|
||||
if (mcx.isEmpty()) return {};
|
||||
const QFile f(mcx);
|
||||
return (f.exists()) ? mcx : "";
|
||||
return (f.exists()) ? mcx : QString();
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user