VirtualBox

Changeset 51479 in vbox


Ignore:
Timestamp:
May 30, 2014 4:32:11 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94069
Message:

FE/VirtualBox: no exceptions here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDHandler.cpp

    r51476 r51479  
    233233    if (!lstFmtNative.isEmpty())
    234234    {
    235         try
     235        UIDnDDrag *pDrag = new UIDnDDrag(session, dndSource, lstFmtNative,
     236                                         toQtDnDAction(defaultAction),
     237                                         toQtDnDActions(vecActions), pParent);
     238        if (pDrag)
    236239        {
    237             UIDnDDrag *pDrag = new UIDnDDrag(session, dndSource, lstFmtNative,
    238                                              toQtDnDAction(defaultAction),
    239                                              toQtDnDActions(vecActions), pParent);
    240240            rc = pDrag->DoDragDrop();
    241 
    242241            delete pDrag;
    243242        }
    244         catch (std::bad_alloc &)
    245         {
     243        else
    246244            rc = VERR_NO_MEMORY;
    247         }
    248245    }
    249246    else /* No format data from the guest arrived yet. */
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