VirtualBox

Changeset 55443 in vbox for trunk


Ignore:
Timestamp:
Apr 27, 2015 12:09:42 PM (10 years ago)
Author:
vboxsync
Message:

ConsoleImpl: removed unnecessary local variable.

File:
1 edited

Legend:

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

    r55442 r55443  
    30183018    LogFlowThisFunc(("Entering for '%s'\n", aName.c_str()));
    30193019
    3020     Utf8Str strName(aName);
    3021 
    30223020    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    30233021
     
    30513049
    30523050        /* first, remove the given folder */
    3053         rc = i_removeSharedFolder(strName);
     3051        rc = i_removeSharedFolder(aName);
    30543052        if (FAILED(rc)) return rc;
    30553053
    30563054        /* first, remove the machine or the global folder if there is any */
    30573055        SharedFolderDataMap::const_iterator it;
    3058         if (i_findOtherSharedFolder(strName, it))
    3059         {
    3060             rc = i_createSharedFolder(strName, it->second);
     3056        if (i_findOtherSharedFolder(aName, it))
     3057        {
     3058            rc = i_createSharedFolder(aName, it->second);
    30613059            /* don't check rc here because we need to remove the console
    30623060             * folder from the collection even on failure */
     
    30643062    }
    30653063
    3066     m_mapSharedFolders.erase(strName);
     3064    m_mapSharedFolders.erase(aName);
    30673065
    30683066    /* Notify console callbacks after the folder is removed from the list. */
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