aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/generator/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/generator/main.cpp')
-rw-r--r--sources/shiboken2/generator/main.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/sources/shiboken2/generator/main.cpp b/sources/shiboken2/generator/main.cpp
index 1817f6b03..9beaf47c7 100644
--- a/sources/shiboken2/generator/main.cpp
+++ b/sources/shiboken2/generator/main.cpp
@@ -27,7 +27,6 @@
****************************************************************************/
#include <QCoreApplication>
-#include <QElapsedTimer>
#include <QLibrary>
#include <QtCore/QFile>
#include <QtCore/QDir>
@@ -385,8 +384,6 @@ int main(int argc, char *argv[])
// PYSIDE-757: Request a deterministic ordering of QHash in the code model
// and type system.
qSetGlobalQHashSeed(0);
- QElapsedTimer timer;
- timer.start();
// needed by qxmlpatterns
QCoreApplication app(argc, argv);
ReportHandler::install();
@@ -634,12 +631,8 @@ int main(int argc, char *argv[])
}
}
- QByteArray doneMessage = "Done, " + QByteArray::number(timer.elapsed()) + "ms";
- if (const int w = ReportHandler::warningCount())
- doneMessage += ", " + QByteArray::number(w) + " warnings";
- if (const int sw = ReportHandler::suppressedCount())
- doneMessage += " (" + QByteArray::number(sw) + " known issues)";
- qCDebug(lcShiboken()).noquote().nospace() << doneMessage;
+ const QByteArray doneMessage = ReportHandler::doneMessage();
+ qCDebug(lcShiboken, "%s", doneMessage.constData());
std::cout << doneMessage.constData() << std::endl;
return EXIT_SUCCESS;