1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +00:00

LibCore: Refactor a version-reading utility

`ArgsParser` and `AboutDialog` had the same procedure to read the
version from `/res/version.ini`. Now they use the `SERENITY_VERSION`
string by default.

This commit refactored the version-reading utility to the new
`Core::Version` namespace.
This commit is contained in:
Mahmoud Mandour 2021-08-29 11:54:59 +02:00 committed by Linus Groh
parent ad80d4dce0
commit 7742f37c10
3 changed files with 28 additions and 0 deletions

View file

@ -12,4 +12,6 @@ namespace Core::Version {
constexpr StringView SERENITY_VERSION = "Version 1.0"sv;
String read_long_version_string();
}