VirtualBox

Ignore:
Timestamp:
Jul 3, 2018 4:04:41 PM (6 years ago)
Author:
vboxsync
Message:

ConsoleImpl: test for empty() instead of size() == 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r72014 r72828  
    16961696    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    16971697
    1698     AssertReturn(m_mapSharedFolders.size() == 0, VERR_INTERNAL_ERROR);
     1698    AssertReturn(m_mapSharedFolders.empty(), VERR_INTERNAL_ERROR);
    16991699
    17001700    uint32_t size = 0;
     
    31613161    HRESULT hrc = S_OK;
    31623162
    3163     if (   !aIds.size()
    3164         || !aPasswords.size())
     3163    if (   aIds.empty()
     3164        || aPasswords.empty())
    31653165        return setError(E_FAIL, tr("IDs and passwords must not be empty"));
    31663166
     
    76687668        // If there is immutable drive the process that.
    76697669        VMPowerUpTask::ProgressList progresses(task->hardDiskProgresses);
    7670         if (aProgress && progresses.size() > 0)
     7670        if (aProgress && !progresses.empty())
    76717671        {
    76727672            for (VMPowerUpTask::ProgressList::const_iterator it = progresses.begin(); it !=  progresses.end(); ++it)
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