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
commit 7742f37c10
Notes: sideshowbarker 2024-07-18 04:54:26 +09:00
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();
}