VirtualBox

Changeset 78056 in vbox for trunk/src


Ignore:
Timestamp:
Apr 9, 2019 11:19:30 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699. Using a shorter QVector initilization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp

    r78054 r78056  
    235235    if (item->isDirectory())
    236236    {
    237         QVector<KDirectoryRemoveRecFlag> aFlags;
    238         aFlags.push_back(KDirectoryRemoveRecFlag_ContentAndDir);
    239 
     237        QVector<KDirectoryRemoveRecFlag> aFlags(1, KDirectoryRemoveRecFlag_ContentAndDir);
    240238        m_comGuestSession.DirectoryRemoveRecursive(item->path(), aFlags);
    241239    }
     
    261259        else if (eType == KFsObjType_Directory)
    262260        {
    263             QVector<KDirectoryRemoveRecFlag> aFlags;
    264             aFlags.push_back(KDirectoryRemoveRecFlag_ContentAndDir);
    265 
     261            QVector<KDirectoryRemoveRecFlag> aFlags(1, KDirectoryRemoveRecFlag_ContentAndDir);
    266262            m_comGuestSession.DirectoryRemoveRecursive(strPath, aFlags);
    267263        }
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