VirtualBox

Changeset 86784 in vbox


Ignore:
Timestamp:
Nov 2, 2020 4:54:17 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141210
Message:

FE/Qt: bugref:9653: UICloudEntityKey: Implementing less-than operator; Fixing expression for equal operator.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UICloudEntityKey.cpp

    r86783 r86784  
    3939{
    4040    return    true
    41            && m_strProviderShortName == another.m_strProviderShortName
    42            && m_strProfileName == another.m_strProfileName
    43            && m_uMachineId == another.m_uMachineId
     41           && toString() == another.toString()
     42              ;
     43}
     44
     45bool UICloudEntityKey::operator<(const UICloudEntityKey &another) const
     46{
     47    return    true
     48           && toString() < another.toString()
    4449              ;
    4550}
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UICloudEntityKey.h

    r86783 r86784  
    2727#include <QUuid>
    2828
    29 /** Cloud entity key definition. */
     29/** Cloud entity key definition.
     30  * This is a key for various indexed containers,
     31  * allowing to distinguish one cloud entity from another. */
    3032struct UICloudEntityKey
    3133{
     
    4244    /** Returns whether this one key equals to @a another one. */
    4345    bool operator==(const UICloudEntityKey &another) const;
     46    /** Returns whether this one key is less than @a another one. */
     47    bool operator<(const UICloudEntityKey &another) const;
    4448
    4549    /** Returns string key representation. */
Note: See TracChangeset for help on using the changeset viewer.

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