Commit c294429 1 parent 6610f3f commit c294429 Copy full SHA for c294429
File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ std::optional<Version> Version::FromVector(const std::vector<size_t>& version) {
26
26
27
27
std::string Version::ToString () const {
28
28
std::stringstream stream;
29
- stream << major << " ." << minor << " ." << patch ;
29
+ stream << major_version << " ." << minor_version << " ." << patch_version ;
30
30
return stream.str ();
31
31
}
32
32
Original file line number Diff line number Diff line change @@ -14,18 +14,21 @@ namespace impeller {
14
14
15
15
struct Version {
16
16
public:
17
- size_t major ;
18
- size_t minor ;
19
- size_t patch ;
17
+ size_t major_version ;
18
+ size_t minor_version ;
19
+ size_t patch_version ;
20
20
21
21
constexpr Version (size_t p_major = 0 , size_t p_minor = 0 , size_t p_patch = 0 )
22
- : major(p_major), minor(p_minor), patch(p_patch) {}
22
+ : major_version(p_major),
23
+ minor_version(p_minor),
24
+ patch_version(p_patch) {}
23
25
24
26
static std::optional<Version> FromVector (const std::vector<size_t >& version);
25
27
26
28
constexpr bool IsAtLeast (const Version& other) {
27
- return std::tie (major, minor, patch) >=
28
- std::tie (other.major , other.minor , other.patch );
29
+ return std::tie (major_version, minor_version, patch_version) >=
30
+ std::tie (other.major_version , other.minor_version ,
31
+ other.patch_version );
29
32
}
30
33
31
34
std::string ToString () const ;
You can’t perform that action at this time.
0 commit comments