From b3e52d351ed909c6ec606f9037f961800972f012 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 24 Sep 2021 14:24:10 +0300 Subject: [PATCH] Clang warning. --- src/libs/ifc/xml/vdomdocument.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/ifc/xml/vdomdocument.cpp b/src/libs/ifc/xml/vdomdocument.cpp index 57284a1bc..91bdeece8 100644 --- a/src/libs/ifc/xml/vdomdocument.cpp +++ b/src/libs/ifc/xml/vdomdocument.cpp @@ -860,28 +860,28 @@ QString VDomDocument::GetFormatVersionStr() const } //--------------------------------------------------------------------------------------------------------------------- -unsigned VDomDocument::GetFormatVersion(const QString &version) +auto VDomDocument::GetFormatVersion(const QString &version) -> unsigned { ValidateVersion(version); const QStringList ver = version.split(QChar('.')); bool ok = false; - const int major = ver.at(0).toInt(&ok); + const unsigned major = ver.at(0).toUInt(&ok); if (not ok) { return 0x0; } ok = false; - const int minor = ver.at(1).toInt(&ok); + const unsigned minor = ver.at(1).toUInt(&ok); if (not ok) { return 0x0; } ok = false; - const int patch = ver.at(2).toInt(&ok); + const unsigned patch = ver.at(2).toUInt(&ok); if (not ok) { return 0x0;