equal
deleted
inserted
replaced
317 |
317 |
318 bool PluginPackage::equal(const PluginPackage& a, const PluginPackage& b) |
318 bool PluginPackage::equal(const PluginPackage& a, const PluginPackage& b) |
319 { |
319 { |
320 return a.m_description == b.m_description; |
320 return a.m_description == b.m_description; |
321 } |
321 } |
|
322 #endif |
322 |
323 |
323 int PluginPackage::compareFileVersion(const PlatformModuleVersion& compareVersion) const |
324 int PluginPackage::compareFileVersion(const PlatformModuleVersion& compareVersion) const |
324 { |
325 { |
325 // return -1, 0, or 1 if plug-in version is less than, equal to, or greater than |
326 // return -1, 0, or 1 if plug-in version is less than, equal to, or greater than |
326 // the passed version |
327 // the passed version |
|
328 |
|
329 #if PLATFORM(WIN_OS) |
|
330 if (m_moduleVersion.mostSig != compareVersion.mostSig) |
|
331 return m_moduleVersion.mostSig > compareVersion.mostSig ? 1 : -1; |
|
332 if (m_moduleVersion.leastSig != compareVersion.leastSig) |
|
333 return m_moduleVersion.leastSig > compareVersion.leastSig ? 1 : -1; |
|
334 #else |
327 if (m_moduleVersion != compareVersion) |
335 if (m_moduleVersion != compareVersion) |
328 return m_moduleVersion > compareVersion ? 1 : -1; |
336 return m_moduleVersion > compareVersion ? 1 : -1; |
|
337 #endif |
|
338 |
329 return 0; |
339 return 0; |
330 } |
340 } |
331 #endif |
341 |
332 |
342 } |
333 } |
|