forked from qt-creator/qt-creator
Make share/qtcreator/cplusplus/examples compilable
Builds now, but does not link (which is fine). And unrelated, unintentional warnings were removed. Change-Id: I6ece33933bc20e6e36fb3859de7c2b774b0e67d5 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -113,9 +113,6 @@ TestObject::TestObject()
|
||||
for (auto obj : list) {
|
||||
}
|
||||
|
||||
// -Wclazy-qdatetime-utc
|
||||
QDateTime::currentDateTime().toTime_t();
|
||||
|
||||
// -Wclazy-qfileinfo-exists
|
||||
// -Wclazy-qstring-allocations
|
||||
QFileInfo("filename").exists();
|
||||
@@ -134,8 +131,5 @@ TestObject::TestObject()
|
||||
str.mid(5).toInt(&ok);
|
||||
|
||||
// -Wclazy-qstring-arg
|
||||
QString("%1 %2").arg("1").arg("2");
|
||||
(void) QString("%1 %2").arg("1").arg("2");
|
||||
}
|
||||
|
||||
// Note: A fatal error like an unresolved include will make clazy stop emitting any diagnostics.
|
||||
// #include "clazy_example.moc"
|
||||
|
Reference in New Issue
Block a user