|
@@ -3,7 +3,7 @@
|
|
|
* Company: Lynar Studios
|
|
* Company: Lynar Studios
|
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
|
* Created: 2020-09-28
|
|
* Created: 2020-09-28
|
|
|
- * Changed: 2023-05-16
|
|
|
|
|
|
|
+ * Changed: 2025-12-21
|
|
|
*
|
|
*
|
|
|
* */
|
|
* */
|
|
|
|
|
|
|
@@ -20,7 +20,7 @@ using std::string;
|
|
|
using std::string_view;
|
|
using std::string_view;
|
|
|
using std::to_string;
|
|
using std::to_string;
|
|
|
|
|
|
|
|
-Version::Version(version_type _majorVersion, version_type _minorVersion, version_type _patchVersion) : majorVersion(_majorVersion), minorVersion(_minorVersion), patchVersion(_patchVersion)
|
|
|
|
|
|
|
+Version::Version(const version_type _majorVersion, const version_type _minorVersion, const version_type _patchVersion) : majorVersion(_majorVersion), minorVersion(_minorVersion), patchVersion(_patchVersion)
|
|
|
{}
|
|
{}
|
|
|
|
|
|
|
|
Version::~Version() noexcept = default;
|
|
Version::~Version() noexcept = default;
|
|
@@ -76,22 +76,22 @@ bool Version::isValid(const string &_versionString)
|
|
|
return Version::_isValid(_versionString);
|
|
return Version::_isValid(_versionString);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void Version::setMajorVersion(version_type _major)
|
|
|
|
|
|
|
+void Version::setMajorVersion(const version_type _major)
|
|
|
{
|
|
{
|
|
|
this->majorVersion = _major;
|
|
this->majorVersion = _major;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void Version::setMinorVersion(version_type _minor)
|
|
|
|
|
|
|
+void Version::setMinorVersion(const version_type _minor)
|
|
|
{
|
|
{
|
|
|
this->minorVersion = _minor;
|
|
this->minorVersion = _minor;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void Version::setPatchVersion(version_type _patch)
|
|
|
|
|
|
|
+void Version::setPatchVersion(const version_type _patch)
|
|
|
{
|
|
{
|
|
|
this->patchVersion = _patch;
|
|
this->patchVersion = _patch;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool Version::_isValid(string_view _versionString)
|
|
|
|
|
|
|
+bool Version::_isValid(const string_view _versionString)
|
|
|
{
|
|
{
|
|
|
bool isValidVersionString{};
|
|
bool isValidVersionString{};
|
|
|
static regex versionRegex{R"(\d+[.]\d+[.]\d+)"};
|
|
static regex versionRegex{R"(\d+[.]\d+[.]\d+)"};
|