Changeset 58018 in vbox
- Timestamp:
- Oct 3, 2015 6:56:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/USBIdDatabaseGenerator.cpp
r58017 r58018 218 218 static StrTabString g_aCompDict[127]; 219 219 220 /** For sorting the frequency fidning in descending order. */ 220 /** 221 * For sorting the frequency fidning in descending order. 222 * 223 * Comparison operators are put outside to make older gcc versions (like 4.1.1 224 * on lnx64-rel) happy. 225 */ 221 226 class WordFreqSortEntry 222 227 { … … 226 231 public: 227 232 WordFreqSortEntry(WORDFREQPAIR const *pPair) : m_pPair(pPair) {} 228 229 bool operator == (WordFreqSortEntry const &rRight) { return m_pPair->second == rRight.m_pPair->second; };230 bool operator < (WordFreqSortEntry const &rRight) { return m_pPair->second > rRight.m_pPair->second; };231 233 }; 234 235 bool operator == (WordFreqSortEntry const &rLeft, WordFreqSortEntry const &rRight) 236 { 237 return rLeft.m_pPair->second == rRight.m_pPair->second; 238 } 239 240 bool operator < (WordFreqSortEntry const &rLeft, WordFreqSortEntry const &rRight) 241 { 242 return rLeft.m_pPair->second > rRight.m_pPair->second; 243 } 232 244 233 245
Note:
See TracChangeset
for help on using the changeset viewer.