forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user