VirtualBox

Changeset 63735 in vbox for trunk/src


Ignore:
Timestamp:
Sep 6, 2016 8:31:10 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110514
Message:

BugReport(bugref:7809): Do not throw exceptions in destructors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBugReport/VBoxBugReport.cpp

    r63712 r63735  
    127127        };
    128128    ~VBRDir()
    129 #if defined(__GNUC__)
    130 # if __cplusplus >= 201103L
    131         noexcept(false)
    132 # endif
    133 #endif
    134129        {
    135130            int rc = RTDirClose(m_pDir);
    136             if (RT_FAILURE(rc))
    137                 throw RTCError("Failed to close directory\n");
     131            AssertRC(rc);
    138132        };
    139133    const char *next(void)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette