mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
Fix Jenkins GNU C Compiler Warning
This commit is contained in:
@@ -150,7 +150,8 @@ namespace BlackMisc
|
||||
for (int i = 0; i < mo->classInfoCount(); i++)
|
||||
{
|
||||
QMetaClassInfo ci = mo->classInfo(i);
|
||||
if (ci.name() == "D-Bus Interface") { return QString(ci.value()); }
|
||||
QString name(ci.name());
|
||||
if (name == "D-Bus Interface") { return QString(ci.value()); }
|
||||
}
|
||||
return "";
|
||||
}
|
||||
@@ -254,7 +255,7 @@ namespace BlackMisc
|
||||
break;
|
||||
case SERVERMODE_P2P:
|
||||
{
|
||||
for(QDBusConnection connection : m_connections)
|
||||
for (QDBusConnection connection : m_connections)
|
||||
{
|
||||
connection.unregisterObject(path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user