mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Fixed gcc warning
This commit is contained in:
@@ -201,12 +201,12 @@ namespace BlackSim
|
||||
{
|
||||
return ""; // normal when there is no settings value
|
||||
}
|
||||
else if (qv.type() == QMetaType::QStringList)
|
||||
else if (static_cast<QMetaType::Type>(qv.type()) == QMetaType::QStringList)
|
||||
{
|
||||
QStringList l = qv.toStringList();
|
||||
return l.join(",").trimmed();
|
||||
}
|
||||
else if (qv.type() == QMetaType::QString)
|
||||
else if (static_cast<QMetaType::Type>(qv.type()) == QMetaType::QString)
|
||||
{
|
||||
return qv.toString().trimmed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user