VirtualBox

Changeset 66897 in vbox


Ignore:
Timestamp:
May 15, 2017 4:06:16 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115418
Message:

Main/SecretKeyStore: be less pushy with iterators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/SecretKeyStore.cpp

    r62485 r66897  
    218218            AssertMsg(!pKey->refCount(), ("No one should access the stored key at this point anymore!\n"));
    219219            delete pKey;
    220             m_mapSecretKeys.erase(it++);
     220            SecretKeyMap::iterator itNext = ++it;
     221            m_mapSecretKeys.erase(it);
     222            it = itNext;
    221223        }
    222224        else
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