VirtualBox

Changeset 26238 in vbox


Ignore:
Timestamp:
Feb 4, 2010 2:51:21 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57285
Message:

Main: remove more dead code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r26186 r26238  
    11751175
    11761176    /**
    1177      *  Sets the error information for the current thread, BStr variant.
    1178      *  A convenience method that automatically sets the default interface
    1179      *  ID (taken from the I template argument) and the component name
    1180      *  (a value of C::getComponentName()).
    1181      *
    1182      *  This method is preferred if you have a ready (translated and formatted)
    1183      *  Bstr string, because it omits an extra conversion Utf8Str -> Bstr.
    1184      *
    1185      *  See #setError(HRESULT, const GUID &, const wchar_t *, const char *text, ...)
    1186      *  and #setError(HRESULT, const char *, ...)  for details.
    1187      */
    1188     static HRESULT setErrorBstr(HRESULT aResultCode, const Bstr &aText)
    1189     {
    1190         HRESULT rc = VirtualBoxSupportErrorInfoImplBase::setError(
    1191             aResultCode, COM_IIDOF(I), C::getComponentName(), aText, true /* aLogIt */);
    1192         return rc;
    1193     }
    1194 
    1195     /**
    1196      *  This method is the same as #setErrorBstr() except that it makes sure @a
    1197      *  aResultCode doesn't have the error severity bit (31) set when passed
    1198      *  down to the created IVirtualBoxErrorInfo object.
    1199      *
    1200      *  The error severity bit is always cleared by this call, thereof you can
    1201      *  use ordinary E_XXX result code constants, for convenience. However, this
    1202      *  behavior may be non-standard on some COM platforms.
    1203      */
    1204     static HRESULT setWarningBstr(HRESULT aResultCode, const Bstr &aText)
    1205     {
    1206         HRESULT rc = VirtualBoxSupportErrorInfoImplBase::setWarning(
    1207             aResultCode, COM_IIDOF(I), C::getComponentName(), aText);
    1208         return rc;
    1209     }
    1210 
    1211     /**
    12121177     *  Sets the error information for the current thread.
    12131178     *  A convenience method that automatically sets the component name
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