src/version.h

changeset 268
fb319526ba6c
parent 250
2837b549e616
child 272
9d52b119b3f5
--- a/src/version.h	Mon Jun 27 01:29:03 2022 +0300
+++ b/src/version.h	Mon Jun 27 01:49:20 2022 +0300
@@ -19,18 +19,15 @@
 #pragma once
 #include <QString>
 
-const char appName[] = "LDForge";
-const char unixName[] = "ldforge";
+constexpr char appName[] = APPNAME;
 
-struct Version {
-	int major;
-	int minor;
-	int patch = 0;
-};
+constexpr struct {
+	int major = VERSION_MAJOR;
+	int minor = VERSION_MINOR;
+	int patch = VERSION_PATCH;
+} APPVERSION;
 
 enum BuildType {InternalBuild, ReleaseBuild};
-
-constexpr Version APPVERSION = {1, 0};
 constexpr BuildType BUILD_TYPE = InternalBuild;
 
 #ifdef DEBUG
@@ -41,5 +38,5 @@
 # undef DEBUG
 #endif // RELEASE
 
-const QString& fullVersionString();
+const char *fullVersionString();
 const QString& commitTimeString();

mercurial