From aaed751bf4430bf4b9b30cef532b8753b9f639ce Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 13:48:31 +0500 Subject: Replace most of C strings with string_view --- core/version.cc.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/version.cc.in') diff --git a/core/version.cc.in b/core/version.cc.in index 0c255c9..a4689d7 100644 --- a/core/version.cc.in +++ b/core/version.cc.in @@ -3,10 +3,10 @@ #include "core/version.hh" // clang-format off -const unsigned long project_version_major = ${PROJECT_VERSION_MAJOR}; -const unsigned long project_version_minor = ${PROJECT_VERSION_MINOR}; -const unsigned long project_version_patch = ${PROJECT_VERSION_PATCH}; -const unsigned long project_version_tweak = ${PROJECT_VERSION_TWEAK}; +const unsigned long version::major = ${PROJECT_VERSION_MAJOR}; +const unsigned long version::minor = ${PROJECT_VERSION_MINOR}; +const unsigned long version::patch = ${PROJECT_VERSION_PATCH}; // clang-format on -const char* project_version_string = "${PROJECT_VERSION}"; +const std::string_view version::commit = "${GIT_COMMIT_HASH}"; +const std::string_view version::semver = "${PROJECT_VERSION}"; -- cgit