VirtualBox

Changeset 72827 in vbox


Ignore:
Timestamp:
Jul 3, 2018 3:28:17 PM (6 years ago)
Author:
vboxsync
Message:

HostServices: test for empty() instead of comparing size() to 0

Location:
trunk/src/VBox/HostServices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/DragAndDrop/service.cpp

    r69500 r72827  
    11721172                }
    11731173
    1174                 Assert(m_clientQueue.size() == 0);
     1174                Assert(m_clientQueue.empty());
    11751175
    11761176                /* Tell the host that everything went well. */
     
    11961196            }
    11971197
    1198             if (m_clientMap.size() == 0) /* At least one client on the guest connected? */
     1198            if (m_clientMap.empty()) /* At least one client on the guest connected? */
    11991199            {
    12001200                /*
     
    12151215
    12161216            /* Any clients in our queue ready for processing the next command? */
    1217             if (m_clientQueue.size() == 0)
     1217            if (m_clientQueue.empty())
    12181218            {
    12191219                LogFlowFunc(("All clients (%zu) busy -- delaying execution\n", m_clientMap.size()));
  • trunk/src/VBox/HostServices/GuestControl/service.cpp

    r71431 r72827  
    556556    const HostCommand *GetCurrent(void)
    557557    {
    558         if (!mHostCmdList.size())
     558        if (mHostCmdList.empty())
    559559            return NULL;
    560560
     
    10731073                 u32ClientID, mClientStateMap.size()));
    10741074
    1075     AssertMsg(mClientStateMap.size(),
     1075    AssertMsg(!mClientStateMap.empty(),
    10761076              ("No clients in list anymore when there should (client ID=%RU32)\n", u32ClientID));
    10771077
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