Fix several gcc, cppcheck and clang warnings

This commit is contained in:
Roland Winklmeier
2014-12-01 00:46:58 +01:00
parent 646589fe22
commit 562cadee8a
9 changed files with 18 additions and 7 deletions

View File

@@ -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
}