VirtualBox

Changeset 14715 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 27, 2008 3:34:57 PM (16 years ago)
Author:
vboxsync
Message:

s/return E_NOTIMPL/ReturnComNotImplemented()/g Main/*.cpp
as suggested by dmik (except for Performance.cpp which is
a different beast entirely for the tr/setError namespace).

Location:
trunk/src/VBox/Main
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r14579 r14715  
    36073607{
    36083608#if !defined (VBOX_WITH_GUEST_PROPS)
    3609     return E_NOTIMPL;
     3609    ReturnComNotImplemented();
    36103610#else
    36113611    if (!VALID_PTR (aName))
     
    36753675{
    36763676#if !defined (VBOX_WITH_GUEST_PROPS)
    3677     return E_NOTIMPL;
     3677    ReturnComNotImplemented();
    36783678#else
    36793679    if (!VALID_PTR (aName))
     
    37533753{
    37543754#if !defined (VBOX_WITH_GUEST_PROPS)
    3755     return E_NOTIMPL;
     3755    ReturnComNotImplemented();
    37563756#else
    37573757    if (!VALID_PTR (aPatterns) && (aPatterns != NULL))
     
    57965796#else /* RT_OS_LINUX not defined */
    57975797    LogFlowThisFunc(("rc=E_NOTIMPL\n"));
    5798     return E_NOTIMPL;  /* not yet supported */
     5798    ReturnComNotImplemented();  /* not yet supported */
    57995799#endif
    58005800}
  • trunk/src/VBox/Main/HardDisk2Impl.cpp

    r14700 r14715  
    11801180    CheckComRCReturnRC (autoCaller.rc());
    11811181
    1182     return E_NOTIMPL;
     1182    ReturnComNotImplemented();
    11831183}
    11841184
     
    11881188    CheckComRCReturnRC (autoCaller.rc());
    11891189
    1190     return E_NOTIMPL;
     1190    ReturnComNotImplemented();
    11911191}
    11921192
     
    11961196    CheckComRCReturnRC (autoCaller.rc());
    11971197
    1198     return E_NOTIMPL;
     1198    ReturnComNotImplemented();
    11991199}
    12001200
  • trunk/src/VBox/Main/HostImpl.cpp

    r14685 r14715  
    11111111#else
    11121112    /* Not implemented / supported on this platform. */
    1113     return E_NOTIMPL;
     1113    ReturnComNotImplemented();
    11141114#endif
    11151115}
     
    11331133     * extended error info to indicate that USB is simply not available
    11341134     * (w/o treting it as a failure), for example, as in OSE */
    1135     return E_NOTIMPL;
     1135    ReturnComNotImplemented();
    11361136#endif
    11371137}
     
    11591159     * extended error info to indicate that USB is simply not available
    11601160     * (w/o treting it as a failure), for example, as in OSE */
    1161     return E_NOTIMPL;
     1161    ReturnComNotImplemented();
    11621162#endif
    11631163}
     
    12251225    CHECK_READY();
    12261226    /** @todo */
    1227     return E_NOTIMPL;
     1227    ReturnComNotImplemented();
    12281228}
    12291229
     
    12571257
    12581258    default:
    1259         return E_NOTIMPL;
     1259        ReturnComNotImplemented();
    12601260    }
    12611261    return S_OK;
     
    13211321    CHECK_READY();
    13221322    /** @todo */
    1323     return E_NOTIMPL;
     1323    ReturnComNotImplemented();
    13241324}
    13251325
     
    13371337    CHECK_READY();
    13381338    /** @todo */
    1339     return E_NOTIMPL;
     1339    ReturnComNotImplemented();
    13401340}
    13411341
     
    15731573     * extended error info to indicate that USB is simply not available
    15741574     * (w/o treting it as a failure), for example, as in OSE */
    1575     return E_NOTIMPL;
     1575    ReturnComNotImplemented();
    15761576#endif
    15771577}
     
    16211621     * extended error info to indicate that USB is simply not available
    16221622     * (w/o treting it as a failure), for example, as in OSE */
    1623     return E_NOTIMPL;
     1623    ReturnComNotImplemented();
    16241624#endif
    16251625}
     
    16761676     * extended error info to indicate that USB is simply not available
    16771677     * (w/o treting it as a failure), for example, as in OSE */
    1678     return E_NOTIMPL;
     1678    ReturnComNotImplemented();
    16791679#endif
    16801680}
  • trunk/src/VBox/Main/MachineDebuggerImpl.cpp

    r14627 r14715  
    129129
    130130    /** @todo */
    131     return E_NOTIMPL;
     131    ReturnComNotImplemented();
    132132}
    133133
     
    144144
    145145    /** @todo */
    146     return E_NOTIMPL;
     146    ReturnComNotImplemented();
    147147}
    148148
  • trunk/src/VBox/Main/MachineImpl.cpp

    r14694 r14715  
    14291429    return S_OK;
    14301430#else
    1431     return E_NOTIMPL;
     1431    ReturnComNotImplemented();
    14321432#endif
    14331433}
     
    14961496     * extended error info to indicate that USB is simply not available
    14971497     * (w/o treting it as a failure), for example, as in OSE */
    1498     return E_NOTIMPL;
     1498    ReturnComNotImplemented();
    14991499#endif
    15001500}
     
    15161516     * extended error info to indicate that SATA is simply not available
    15171517     * (w/o treting it as a failure), for example, as in OSE */
    1518     return E_NOTIMPL;
     1518    ReturnComNotImplemented();
    15191519#endif
    15201520}
     
    29812981{
    29822982#if !defined (VBOX_WITH_GUEST_PROPS)
    2983     return E_NOTIMPL;
     2983    ReturnComNotImplemented();
    29842984#else
    29852985    if (!VALID_PTR (aName))
     
    30513051{
    30523052#if !defined (VBOX_WITH_GUEST_PROPS)
    3053     return E_NOTIMPL;
     3053    ReturnComNotImplemented();
    30543054#else
    30553055    using namespace guestProp;
     
    31753175{
    31763176#if !defined (VBOX_WITH_GUEST_PROPS)
    3177     return E_NOTIMPL;
     3177    ReturnComNotImplemented();
    31783178#else
    31793179    if (!VALID_PTR (aPatterns) && (aPatterns != NULL))
     
    88858885    return S_OK;
    88868886#else
    8887     return E_NOTIMPL;
     8887    ReturnComNotImplemented();
    88888888#endif
    88898889}
     
    89438943    return S_OK;
    89448944#else
    8945     return E_NOTIMPL;
     8945    ReturnComNotImplemented();
    89468946#endif
    89478947}
     
    90099009    return S_OK;
    90109010#else
    9011     return E_NOTIMPL;
     9011    ReturnComNotImplemented();
    90129012#endif
    90139013}
  • trunk/src/VBox/Main/MediumImpl.cpp

    r14579 r14715  
    9494    /// require to add the mRegistered flag to data
    9595
    96     return E_NOTIMPL;
     96    ReturnComNotImplemented();
    9797}
    9898
     
    163163    /// this medium), this will also require to add the mRegistered flag to data
    164164
    165     return E_NOTIMPL;
     165    ReturnComNotImplemented();
    166166}
    167167
  • trunk/src/VBox/Main/NetworkAdapterImpl.cpp

    r14665 r14715  
    471471
    472472#else
    473     return E_NOTIMPL;
     473    ReturnComNotImplemented();
    474474#endif
    475475}
     
    511511    return S_OK;
    512512#else
    513     return E_NOTIMPL;
     513    ReturnComNotImplemented();
    514514#endif
    515515}
     
    532532    return S_OK;
    533533#else
    534     return E_NOTIMPL;
     534    ReturnComNotImplemented();
    535535#endif
    536536}
     
    566566    return S_OK;
    567567#else
    568     return E_NOTIMPL;
     568    ReturnComNotImplemented();
    569569#endif
    570570}
     
    587587    return S_OK;
    588588#else
    589     return E_NOTIMPL;
     589    ReturnComNotImplemented();
    590590#endif
    591591}
     
    621621    return S_OK;
    622622#else
    623     return E_NOTIMPL;
     623    ReturnComNotImplemented();
    624624#endif
    625625}
  • trunk/src/VBox/Main/ProgressImpl.cpp

    r14579 r14715  
    759759
    760760    ComAssertMsgFailed (("Not implemented!"));
    761     return E_NOTIMPL;
     761    ReturnComNotImplemented();
    762762}
    763763
     
    14461446
    14471447    ComAssertMsgFailed (("Not implemented!"));
    1448     return E_NOTIMPL;
     1448    ReturnComNotImplemented();
    14491449}
    14501450
  • trunk/src/VBox/Main/SessionImpl.cpp

    r14579 r14715  
    702702        return mConsole->setGuestProperty (aName, aValue, aFlags);
    703703#else /* VBOX_WITH_GUEST_PROPS not defined */
    704     return E_NOTIMPL;
     704    ReturnComNotImplemented();
    705705#endif /* VBOX_WITH_GUEST_PROPS not defined */
    706706}
     
    737737                                              ComSafeArrayOutArg(aFlags));
    738738#else /* VBOX_WITH_GUEST_PROPS not defined */
    739     return E_NOTIMPL;
     739    ReturnComNotImplemented();
    740740#endif /* VBOX_WITH_GUEST_PROPS not defined */
    741741}
  • trunk/src/VBox/Main/USBControllerImpl.cpp

    r14579 r14715  
    416416    return S_OK;
    417417#else
    418     return E_NOTIMPL;
     418    ReturnComNotImplemented();
    419419#endif
    420420}
     
    481481    return S_OK;
    482482#else
    483     return E_NOTIMPL;
     483    ReturnComNotImplemented();
    484484#endif
    485485}
     
    550550    return S_OK;
    551551#else
    552     return E_NOTIMPL;
     552    ReturnComNotImplemented();
    553553#endif
    554554}
  • trunk/src/VBox/Main/VirtualBoxErrorInfoImpl.cpp

    r8155 r14715  
    129129STDMETHODIMP VirtualBoxErrorInfo::GetHelpContext (DWORD *pdwHelpContext)
    130130{
    131     return E_NOTIMPL;
     131    ReturnComNotImplemented();
    132132}
    133133
    134134STDMETHODIMP VirtualBoxErrorInfo::GetHelpFile (BSTR *pbstrHelpFile)
    135135{
    136     return E_NOTIMPL;
     136    ReturnComNotImplemented();
    137137}
    138138
  • trunk/src/VBox/Main/VirtualBoxImpl.cpp

    r14666 r14715  
    746746    return S_OK;
    747747#else /* !VBOX_WITH_RESOURCE_USAGE_API */
    748     return E_NOTIMPL;
     748    ReturnComNotImplemented();
    749749#endif /* !VBOX_WITH_RESOURCE_USAGE_API */
    750750}
     
    18581858                                                BSTR *aChanged, BSTR *aValues)
    18591859{
    1860     return E_NOTIMPL;
     1860    ReturnComNotImplemented();
    18611861}
    18621862
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r14624 r14715  
    449449/**
    450450 * Sets the extended error info and returns E_NOTIMPL.
    451  * @param method    Method that is not implemented.
    452  */
    453 #define ReturnComNotImplemented(method) \
     451 */
     452#define ReturnComNotImplemented() \
    454453    do { \
    455         return setError (E_NOTIMPL, tr ("Method %s is not implemented"), #method); \
     454        return setError (E_NOTIMPL, tr ("Method %s is not implemented"), __func__); \
    456455    } while (0)
    457456
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