VirtualBox

Changeset 107464 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 7, 2025 12:26:31 PM (12 days ago)
Author:
vboxsync
Message:

Main/src-client/ConsoleImpl.cpp: Eliminate useless assignment as hrc gets overwritten again in the catch() block below, bugref:3409

File:
1 edited

Legend:

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

    r107276 r107464  
    87288728         * asynchronously */
    87298729        try { task = new VMPowerUpTask(this, pPowerupProgress); }
    8730         catch (std::bad_alloc &) { throw hrc = E_OUTOFMEMORY; }
     8730        catch (std::bad_alloc &) { throw E_OUTOFMEMORY; }
    87318731        if (!task->isOk())
    87328732            throw task->hrc();
     
    87378737        if (mMachineState == MachineState_Saved || mMachineState == MachineState_AbortedSaved)
    87388738            try { task->mSavedStateFile = strSavedStateFile; }
    8739             catch (std::bad_alloc &) { throw hrc = E_OUTOFMEMORY; }
     8739            catch (std::bad_alloc &) { throw E_OUTOFMEMORY; }
    87408740        task->mTeleporterEnabled = fTeleporterEnabled;
    87418741
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