Changeset 72828 in vbox for trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
- Timestamp:
- Jul 3, 2018 4:04:41 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r72014 r72828 1696 1696 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1697 1697 1698 AssertReturn(m_mapSharedFolders. size() == 0, VERR_INTERNAL_ERROR);1698 AssertReturn(m_mapSharedFolders.empty(), VERR_INTERNAL_ERROR); 1699 1699 1700 1700 uint32_t size = 0; … … 3161 3161 HRESULT hrc = S_OK; 3162 3162 3163 if ( !aIds.size()3164 || !aPasswords.size())3163 if ( aIds.empty() 3164 || aPasswords.empty()) 3165 3165 return setError(E_FAIL, tr("IDs and passwords must not be empty")); 3166 3166 … … 7668 7668 // If there is immutable drive the process that. 7669 7669 VMPowerUpTask::ProgressList progresses(task->hardDiskProgresses); 7670 if (aProgress && progresses.size() > 0)7670 if (aProgress && !progresses.empty()) 7671 7671 { 7672 7672 for (VMPowerUpTask::ProgressList::const_iterator it = progresses.begin(); it != progresses.end(); ++it)
Note:
See TracChangeset
for help on using the changeset viewer.