mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Return a default-constructed QString instead of implicitly converting an empty string literal.
This commit is contained in:
@@ -171,7 +171,7 @@ namespace BlackMisc
|
||||
|
||||
QString CDBusServer::getDBusInterfaceFromClassInfo(QObject *object)
|
||||
{
|
||||
if (! object) { return ""; }
|
||||
if (! object) { return {}; }
|
||||
const QMetaObject *mo = object->metaObject();
|
||||
for (int i = 0; i < mo->classInfoCount(); i++)
|
||||
{
|
||||
@@ -179,7 +179,7 @@ namespace BlackMisc
|
||||
const QString name = QString(ci.name()).toLower();
|
||||
if (name == "d-bus interface") { return QString(ci.value()); }
|
||||
}
|
||||
return "";
|
||||
return {};
|
||||
}
|
||||
|
||||
QDBusConnection::RegisterOptions CDBusServer::registerOptions()
|
||||
|
||||
Reference in New Issue
Block a user