VirtualBox

Changeset 41184 in vbox for trunk/src/VBox/Frontends/VBoxBFE


Ignore:
Timestamp:
May 7, 2012 1:28:04 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77810
Message:

Main+Frontends: removed unused and confusing VirtualBoxErrorInfo implementation, and cleaned up lots of misleading comments and other leftovers about the earlier ErrorInfo mess

Location:
trunk/src/VBox/Frontends/VBoxBFE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/NetworkAdapterImpl.cpp

    r28800 r41184  
    187187        AssertMsgFailed(("Invalid file descriptor: %ld.\n", tapFileDescriptor));
    188188
    189         //    setError  VirtualBoxSupportErrorInfoImplBase which
    190         //       is a parent class of NetworAdapter in the COM flavored version
    191         //    return setError (E_INVALIDARG,
    192         //        tr ("Invalid file descriptor: %ld"), tapFileDescriptor);
    193 
    194         return S_OK;
    195 
     189        return setError (E_INVALIDARG,
     190                tr ("Invalid file descriptor: %ld"), tapFileDescriptor);
    196191    }
    197192
  • trunk/src/VBox/Frontends/VBoxBFE/VirtualBoxBase.h

    r36120 r41184  
    8181
    8282/**
    83  *  A special version of the Assert macro to be used within VirtualBoxBase
    84  *  subclasses that also inherit the VirtualBoxSupportErrorInfoImpl template.
     83 *  Assert macro wrapper.
    8584 *
    8685 *  In the debug build, this macro is equivalent to Assert.
    87  *  In the release build, this macro uses |setError (E_FAIL, ...)| to set the
    88  *  error info from the asserted expression.
    89  *
    90  *  @see VirtualBoxSupportErrorInfoImpl::setError
     86 *  In the release build, this is a no-op.
    9187 *
    9288 *  @param   expr    Expression which should be true.
     
    10096
    10197/**
    102  *  A special version of the AssertMsg macro to be used within VirtualBoxBase
    103  *  subclasses that also inherit the VirtualBoxSupportErrorInfoImpl template.
     98 *  AssertMsg macro wrapper.
     99 *
     100 *  In the debug build, this macro is equivalent to AssertMsg.
     101 *  In the release build, this is a no-op.
    104102 *
    105103 *  See ComAssert for more info.
     
    116114
    117115/**
    118  *  A special version of the AssertRC macro to be used within VirtualBoxBase
    119  *  subclasses that also inherit the VirtualBoxSupportErrorInfoImpl template.
     116 *  AssertRC macro wrapper.
     117 *
     118 *  In the debug build, this macro is equivalent to AssertRC.
     119 *  In the release build, this is a no-op.
    120120 *
    121121 *  See ComAssert for more info.
     
    130130
    131131/**
    132  *  A special version of the AssertMsgRC macro to be used within VirtualBoxBase
    133  *  subclasses that also inherit the VirtualBoxSupportErrorInfoImpl template.
     132 *  AssertMsgRC macro wrapper.
     133 *
     134 *  In the debug build, this macro is equivalent to AssertMsgRC.
     135 *  In the release build, this is a no-op.
    134136 *
    135137 *  See ComAssert for more info.
     
    146148
    147149/**
    148  *  A special version of the AssertFailed macro to be used within VirtualBoxBase
    149  *  subclasses that also inherit the VirtualBoxSupportErrorInfoImpl template.
     150 *  AssertFailed macro wrapper.
     151 *
     152 *  In the debug build, this macro is equivalent to AssertFailed.
     153 *  In the release build, this is a no-op.
    150154 *
    151155 *  See ComAssert for more info.
     
    159163
    160164/**
    161  *  A special version of the AssertMsgFailed macro to be used within VirtualBoxBase
    162  *  subclasses that also inherit the VirtualBoxSupportErrorInfoImpl template.
     165 *  AssertMsgFailed macro wrapper.
     166 *
     167 *  In the debug build, this macro is equivalent to AssertMsgFailed.
     168 *  In the release build, this is a no-op.
    163169 *
    164170 *  See ComAssert for more info.
     
    174180
    175181/**
    176  *  A special version of the AssertComRC macro to be used within VirtualBoxBase
    177  *  subclasses that also inherit the VirtualBoxSupportErrorInfoImpl template.
     182 *  AssertComRC macro wrapper.
     183 *
     184 *  In the debug build, this macro is equivalent to AssertComRC.
     185 *  In the release build, this is a no-op.
    178186 *
    179187 *  See ComAssert for more info.
     
    246254 *  This macro <b>must</b> be used at the beginning of all interface methods
    247255 *  (right after entering the class lock) in classes derived from both
    248  *  VirtualBoxBase and VirtualBoxSupportErrorInfoImpl.
     256 *  VirtualBoxBase.
    249257 */
    250258#define CHECK_READY() \
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