VirtualBox

Ignore:
Timestamp:
Jul 3, 2018 3:28:17 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123372
Message:

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

File:
1 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()));
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