VirtualBox

Changeset 50544 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Feb 21, 2014 2:47:22 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92396
Message:

Main/Event: eliminate unused parameter

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

Legend:

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

    r39714 r50544  
    145145
    146146    // public initializer/uninitializer for internal purposes only
    147     HRESULT init(IUnknown *aParent);
     147    HRESULT init();
    148148    void uninit();
    149149
  • trunk/src/VBox/Main/src-all/EventImpl.cpp

    r50543 r50544  
    929929}
    930930
    931 HRESULT EventSource::init(IUnknown *)
     931HRESULT EventSource::init()
    932932{
    933933    HRESULT rc = S_OK;
     
    14101410    ComAssertMsgRet(SUCCEEDED(rc), ("Could not create source (%Rhrc)", rc),
    14111411                    E_FAIL);
    1412     rc = mSource->init((IEventSource *)this);
     1412    rc = mSource->init();
    14131413    ComAssertMsgRet(SUCCEEDED(rc), ("Could not init source (%Rhrc)", rc),
    14141414                    E_FAIL);
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r50403 r50544  
    490490    // Event source may be needed by other children
    491491    unconst(mEventSource).createObject();
    492     rc = mEventSource->init(static_cast<IConsole*>(this));
     492    rc = mEventSource->init();
    493493    AssertComRCReturnRC(rc);
    494494
  • trunk/src/VBox/Main/src-client/GuestFileImpl.cpp

    r49610 r50544  
    161161
    162162        unconst(mEventSource).createObject();
    163         HRESULT hr = mEventSource->init(static_cast<IGuestFile*>(this));
     163        HRESULT hr = mEventSource->init();
    164164        if (FAILED(hr))
    165165            vrc = VERR_COM_UNEXPECTED;
  • trunk/src/VBox/Main/src-client/GuestImpl.cpp

    r50460 r50544  
    112112    hr = unconst(mEventSource).createObject();
    113113    if (SUCCEEDED(hr))
    114         hr = mEventSource->init(static_cast<IGuest*>(this));
     114        hr = mEventSource->init();
    115115#else
    116116    hr = S_OK;
  • trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp

    r49653 r50544  
    189189        else
    190190        {
    191             hr = mEventSource->init(static_cast<IGuestProcess*>(this));
     191            hr = mEventSource->init();
    192192            if (FAILED(hr))
    193193                vrc = VERR_COM_UNEXPECTED;
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r49948 r50544  
    212212        else
    213213        {
    214             hr = mEventSource->init(static_cast<IGuestSession*>(this));
     214            hr = mEventSource->init();
    215215            if (FAILED(hr))
    216216                rc = VERR_COM_UNEXPECTED;
  • trunk/src/VBox/Main/src-client/KeyboardImpl.cpp

    r49386 r50544  
    113113
    114114    unconst(mEventSource).createObject();
    115     HRESULT rc = mEventSource->init(static_cast<IKeyboard*>(this));
     115    HRESULT rc = mEventSource->init();
    116116    AssertComRCReturnRC(rc);
    117117
  • trunk/src/VBox/Main/src-client/MouseImpl.cpp

    r47848 r50544  
    113113
    114114    unconst(mEventSource).createObject();
    115     HRESULT rc = mEventSource->init(static_cast<IMouse*>(this));
     115    HRESULT rc = mEventSource->init();
    116116    AssertComRCReturnRC(rc);
    117117    mMouseEvent.init(mEventSource, VBoxEventType_OnGuestMouse,
  • trunk/src/VBox/Main/src-client/VirtualBoxClientImpl.cpp

    r50174 r50544  
    8282    rc = unconst(mData.m_pEventSource).createObject();
    8383    AssertComRCReturnRC(rc);
    84     rc = mData.m_pEventSource->init(static_cast<IVirtualBoxClient *>(this));
     84    rc = mData.m_pEventSource->init();
    8585    AssertComRCReturnRC(rc);
    8686
  • trunk/src/VBox/Main/src-server/NATNetworkImpl.cpp

    r50355 r50544  
    152152    if (FAILED(hrc)) throw hrc;
    153153
    154     hrc = m->pEventSource->init(static_cast<INATNetwork *>(this));
     154    hrc = m->pEventSource->init();
    155155    if (FAILED(hrc)) throw hrc;
    156156
     
    207207    if (FAILED(hrc)) throw hrc;
    208208
    209     hrc = m->pEventSource->init(static_cast<INATNetwork *>(this));
     209    hrc = m->pEventSource->init();
    210210    if (FAILED(hrc)) throw hrc;
    211211
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r50434 r50544  
    505505        /* events */
    506506        if (SUCCEEDED(rc = unconst(m->pEventSource).createObject()))
    507             rc = m->pEventSource->init(static_cast<IVirtualBox*>(this));
     507            rc = m->pEventSource->init();
    508508        if (FAILED(rc)) throw rc;
    509509
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