fix warning

Change-Id: I36ef0823a7e0b786b1315df4e3d48fabb99c16f4
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Tim Jenssen
2021-01-05 13:46:41 +01:00
parent d203032504
commit 2a37a5ae16
2 changed files with 2 additions and 2 deletions

View File

@@ -1087,7 +1087,7 @@ static int counterClockWise(const std::vector<QPointF> &points)
};
const int m = findLR(points);
const int n = points.size();
const int n = static_cast<int>(points.size());
// Determine previous and next point to m (the lowest, rightmost point).
const QPointF a = points[(m + (n - 1)) % n];

View File

@@ -89,7 +89,7 @@ void ItemLibraryAssetImporter::importQuick3D(const QStringList &inputFiles,
if (m_qmlPuppetProcesses.empty()) {
finalizeQuick3DImport();
} else {
m_qmlPuppetCount = m_qmlPuppetProcesses.size();
m_qmlPuppetCount = static_cast<int>(m_qmlPuppetProcesses.size());
const QString progressTitle = tr("Generating icons.");
addInfo(progressTitle);
notifyProgress(0, progressTitle);