mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 11:45:40 +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++)
|
for (int i = 0; i < mo->classInfoCount(); i++)
|
||||||
{
|
{
|
||||||
QMetaClassInfo ci = mo->classInfo(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 "";
|
return "";
|
||||||
}
|
}
|
||||||
@@ -254,7 +255,7 @@ namespace BlackMisc
|
|||||||
break;
|
break;
|
||||||
case SERVERMODE_P2P:
|
case SERVERMODE_P2P:
|
||||||
{
|
{
|
||||||
for(QDBusConnection connection : m_connections)
|
for (QDBusConnection connection : m_connections)
|
||||||
{
|
{
|
||||||
connection.unregisterObject(path);
|
connection.unregisterObject(path);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user