VirtualBox

Changeset 14972 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Dec 4, 2008 12:10:37 PM (16 years ago)
Author:
vboxsync
Message:

#3285: Improve error handling API to include unique error numbers

The mega commit that implements Main-wide usage of new CheckCom*
macros, mostly CheckComArgNotNull, CheckComArgStrNotEmptyOrNull,
CheckComArgOutSafeArrayPointerValid, CheckComArgExpr.
Note that some methods incorrectly returned E_INVALIDARG where they
should have returned E_POINTER and vice versa. If any higher level
function tests these, they will behave differently now...

Special thanks to: vi macros, making it easy to semi-automatically
find and replace several hundred instances of if (!aName) ...

Location:
trunk/src/VBox/Main/include
Files:
2 edited

Legend:

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

    r14949 r14972  
    8080
    8181private:
     82    // FIXME: declare these here until VBoxSupportsTranslation base
     83    //        is available in this class.
     84    static const char *tr (const char *a) { return a; }
     85    static HRESULT setError (HRESULT rc, const char *a,
     86                             const char *b, void *c) { return rc; }
     87
    8288    int mWidth;
    8389    int mHeight;
  • trunk/src/VBox/Main/include/VirtualBoxErrorInfoImpl.h

    r14949 r14972  
    8181
    8282private:
     83    // FIXME: declare these here until VBoxSupportsTranslation base
     84    //        is available in this class.
     85    static const char *tr (const char *a) { return a; }
     86    static HRESULT setError (HRESULT rc, const char *a,
     87                             const char *b, void *c) { return rc; }
    8388
    8489    HRESULT mResultCode;
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