VirtualBox

Changeset 83335 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 19, 2020 4:37:00 PM (5 years ago)
Author:
vboxsync
Message:

Guest Control/Main: Use std::bad_alloc. bugref:9320

File:
1 edited

Legend:

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

    r83323 r83335  
    982982        mVecEntries.push_back(pEntry);
    983983    }
    984     catch (...)
     984    catch (std::bad_alloc &)
    985985    {
    986986        if (pEntry)
     
    10121012        mVecEntries.push_back(pEntry);
    10131013    }
    1014     catch (...)
     1014    catch (std::bad_alloc &)
    10151015    {
    10161016        if (pEntry)
     
    15271527            mVecLists.push_back(pFsList);
    15281528        }
    1529         catch (...)  /** @todo r=bird: Catch std:bad_alloc &, not ... Will avoid headscratching if something is thrown. */
     1529        catch (std::bad_alloc &)
    15301530        {
    15311531            vrc = VERR_NO_MEMORY;
     
    17681768            mVecLists.push_back(pFsList);
    17691769        }
    1770         catch (...)
     1770        catch (std::bad_alloc &)
    17711771        {
    17721772            rc = VERR_NO_MEMORY;
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