diff --git a/engine/src/flutter/impeller/base/version.cc b/engine/src/flutter/impeller/base/version.cc index 910e106aa1..2a0beea767 100644 --- a/engine/src/flutter/impeller/base/version.cc +++ b/engine/src/flutter/impeller/base/version.cc @@ -26,7 +26,7 @@ std::optional Version::FromVector(const std::vector& version) { std::string Version::ToString() const { std::stringstream stream; - stream << major << "." << minor << "." << patch; + stream << major_version << "." << minor_version << "." << patch_version; return stream.str(); } diff --git a/engine/src/flutter/impeller/base/version.h b/engine/src/flutter/impeller/base/version.h index b042ce268a..8be914f6ba 100644 --- a/engine/src/flutter/impeller/base/version.h +++ b/engine/src/flutter/impeller/base/version.h @@ -14,18 +14,21 @@ namespace impeller { struct Version { public: - size_t major; - size_t minor; - size_t patch; + size_t major_version; + size_t minor_version; + size_t patch_version; constexpr Version(size_t p_major = 0, size_t p_minor = 0, size_t p_patch = 0) - : major(p_major), minor(p_minor), patch(p_patch) {} + : major_version(p_major), + minor_version(p_minor), + patch_version(p_patch) {} static std::optional FromVector(const std::vector& version); constexpr bool IsAtLeast(const Version& other) { - return std::tie(major, minor, patch) >= - std::tie(other.major, other.minor, other.patch); + return std::tie(major_version, minor_version, patch_version) >= + std::tie(other.major_version, other.minor_version, + other.patch_version); } std::string ToString() const;