Fix max component version

Change-Id: Ib7328c00a461f22e5c924a441844260f15fb0dd3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2024-04-23 11:14:02 +02:00
committed by Tim Jenssen
parent b07d2f0c1d
commit 2c38f9ae74

View File

@@ -11,6 +11,8 @@ QT_END_NAMESPACE
#include <QStringView>
#include <limits>
namespace LanguageUtils {
class LANGUAGEUTILS_EXPORT ComponentVersion
@@ -19,8 +21,8 @@ class LANGUAGEUTILS_EXPORT ComponentVersion
int _minor;
public:
static const int NoVersion = -1;
static const int MaxVersion = -1;
static constexpr int NoVersion = -1;
static constexpr int MaxVersion = std::numeric_limits<int>::max();
ComponentVersion()
: _major(NoVersion)