VirtualBox

Changeset 58018 in vbox


Ignore:
Timestamp:
Oct 3, 2015 6:56:48 PM (9 years ago)
Author:
vboxsync
Message:

USBIdDatabase*: build fix attempt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/USBIdDatabaseGenerator.cpp

    r58017 r58018  
    218218static StrTabString g_aCompDict[127];
    219219
    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 */
    221226class WordFreqSortEntry
    222227{
     
    226231public:
    227232    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; };
    231233};
     234
     235bool operator == (WordFreqSortEntry const &rLeft, WordFreqSortEntry const &rRight)
     236{
     237    return rLeft.m_pPair->second == rRight.m_pPair->second;
     238}
     239
     240bool operator <  (WordFreqSortEntry const &rLeft, WordFreqSortEntry const &rRight)
     241{
     242    return rLeft.m_pPair->second >  rRight.m_pPair->second;
     243}
    232244
    233245
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette