mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Fix several gcc, cppcheck and clang warnings
This commit is contained in:
@@ -64,7 +64,7 @@ namespace BlackMisc
|
||||
|
||||
// not all classes have implemented nesting
|
||||
const QString m = QString("Property by index not found (setter), index: ").append(index.toQString());
|
||||
qFatal(m.toLatin1().constData());
|
||||
qFatal("%s", qPrintable(m));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -88,7 +88,7 @@ namespace BlackMisc
|
||||
|
||||
// not all classes have implemented nesting
|
||||
const QString m = QString("Property by index not found, index: ").append(index.toQString());
|
||||
qFatal(m.toLatin1().constData());
|
||||
qFatal("%s", qPrintable(m));
|
||||
return QVariant(m); // avoid compiler warning
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user