MCPcopy Create free account
hub / github.com/bruderstein/nppPluginManager / compare

Method compare

pluginManager/src/PluginVersion.cpp:265–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263
264
265int PluginVersion::compare(const PluginVersion &lhs, const PluginVersion &rhs) const
266{
267
268
269 int difference = lhs._major - rhs._major;
270 if (difference != 0)
271 return difference;
272
273 difference = lhs._minor - rhs._minor;
274 if (difference != 0)
275 return difference;
276
277 difference = lhs._revision - rhs._revision;
278 if (difference != 0)
279 return difference;
280
281
282 difference = lhs._build - rhs._build;
283 return difference;
284
285
286}
287
288TCHAR* PluginVersion::getDisplayString()
289{

Callers 1

operator <Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected