VirtualBox

Ignore:
Timestamp:
Aug 24, 2021 9:44:46 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146463
Message:

Main: bugref:1909: Added API localization

File:
1 edited

Legend:

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

    r85309 r90828  
    6363public:
    6464
    65     DECLARE_EMPTY_CTOR_DTOR (Guest)
     65    DECLARE_COMMON_CLASS_METHODS (Guest)
    6666
    6767    HRESULT FinalConstruct();
     
    101101    BOOL i_isPageFusionEnabled();
    102102    void i_setCpuCount(uint32_t aCpus) { mCpus = aCpus; }
    103     static HRESULT i_setErrorStatic(HRESULT aResultCode, const Utf8Str &aText)
     103    static HRESULT i_setErrorStatic(HRESULT aResultCode, const char *aText, ...)
    104104    {
    105         return setErrorInternal(aResultCode, getStaticClassIID(), getStaticComponentName(), aText, false, true);
     105        va_list va;
     106        va_start(va, aText);
     107        HRESULT hrc = setErrorInternalV(aResultCode, getStaticClassIID(), getStaticComponentName(), aText, va, false, true);
     108        va_end(va);
     109        return hrc;
    106110    }
    107111    uint32_t    i_getAdditionsRevision(void) { return mData.mAdditionsRevision; }
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