MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / mergeFromList

Method mergeFromList

launcher/meta/Version.cpp:57–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void Meta::Version::mergeFromList(const Meta::VersionPtr& other)
58{
59 if(other->m_providesRecommendations)
60 {
61 if(m_recommended != other->m_recommended)
62 {
63 setRecommended(other->m_recommended);
64 }
65 }
66 if (m_type != other->m_type)
67 {
68 setType(other->m_type);
69 }
70 if (m_time != other->m_time)
71 {
72 setTime(other->m_time);
73 }
74 if (m_requires != other->m_requires)
75 {
76 m_requires = other->m_requires;
77 }
78 if (m_conflicts != other->m_conflicts)
79 {
80 m_conflicts = other->m_conflicts;
81 }
82 if(m_volatile != other->m_volatile)
83 {
84 setVolatile(other->m_volatile);
85 }
86}
87
88void Meta::Version::merge(const VersionPtr &other)
89{

Callers 1

mergeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected