Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-11-22 13:13:05 +0300
committerRobert Adam <dev@robert-adam.de>2022-03-22 20:28:26 +0300
commit06b56530997fb623c9690ad7bdb8d3f5915d48a0 (patch)
tree3e4055de1eda9797ada6e9bce0bacadbb2410138 /src
parentc3541345062d7f83b4591145821366bbd06b9797 (diff)
REFAC: Add constant for unknown versions
Diffstat (limited to 'src')
-rw-r--r--src/Version.h2
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)));