diff options
author | Robert Adam <dev@robert-adam.de> | 2021-11-22 13:13:05 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2022-03-22 20:28:26 +0300 |
commit | 06b56530997fb623c9690ad7bdb8d3f5915d48a0 (patch) | |
tree | 3e4055de1eda9797ada6e9bce0bacadbb2410138 /src | |
parent | c3541345062d7f83b4591145821366bbd06b9797 (diff) |
REFAC: Add constant for unknown versions
Diffstat (limited to 'src')
-rw-r--r-- | src/Version.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Version.h b/src/Version.h index cced5fe27..7e6d07e7b 100644 --- a/src/Version.h +++ b/src/Version.h @@ -23,6 +23,8 @@ using mumble_raw_version_t = unsigned int; static_assert(sizeof(exact_width_mumble_raw_version_t) <= sizeof(mumble_raw_version_t), "Invalid scalar type used to represent Mumble versions"); +constexpr mumble_raw_version_t UNKNOWN = 0; + unsigned int getRaw(const QString &version = QLatin1String(MUMTEXT(MUMBLE_VERSION))); QString toString(mumble_raw_version_t version); bool get(int *major, int *minor, int *patch, const QString &version = QLatin1String(MUMTEXT(MUMBLE_VERSION))); |