VirtualBox

Changeset 78093 in vbox


Ignore:
Timestamp:
Apr 10, 2019 3:11:29 PM (5 years ago)
Author:
vboxsync
Message:

DnD/Main: Renamed GuestDnDInst() macro -> GUESTDNDINST().

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

Legend:

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

    r76562 r78093  
    11221122};
    11231123
    1124 /** Access to the GuestDnD's singleton instance.
    1125  * @todo r=bird: Please add a 'Get' or something to this as it currently looks
    1126  *       like a class instantiation rather than a getter.  Alternatively, use
    1127  *       UPPER_CASE like the coding guideline suggest for macros. */
    1128 #define GuestDnDInst() GuestDnD::getInstance()
     1124/** Access to the GuestDnD's singleton instance. */
     1125#define GUESTDNDINST() GuestDnD::getInstance()
    11291126
    11301127/** List of pointers to guest DnD Messages. */
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r77753 r78093  
    31253125                rc = HGCMHostRegisterServiceExtension(&hDummy, "VBoxDragAndDropSvc",
    31263126                                                      &GuestDnD::notifyDnDDispatcher,
    3127                                                       GuestDnDInst());
     3127                                                      GUESTDNDINST());
    31283128                if (RT_FAILURE(rc))
    31293129                    Log(("Cannot register VBoxDragAndDropSvc extension, rc=%Rrc\n", rc));
  • trunk/src/VBox/Main/src-client/GuestDnDPrivate.cpp

    r76891 r78093  
    764764{
    765765    /* Initialize public attributes. */
    766     m_lstFmtSupported = GuestDnDInst()->defaultFormats();
     766    m_lstFmtSupported = GUESTDNDINST()->defaultFormats();
    767767
    768768    /* Initialzie private stuff. */
     
    929929    LogRel2(("DnD: Cancelling operation on guest ..."));
    930930
    931     return GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
     931    return GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    932932}
    933933
  • trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp

    r78089 r78093  
    266266    Msg.setNextUInt32(uScreenId);
    267267
    268     int rc = GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
     268    int rc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    269269    if (RT_SUCCESS(rc))
    270270    {
    271         GuestDnDResponse *pResp = GuestDnDInst()->response();
     271        GuestDnDResponse *pResp = GUESTDNDINST()->response();
    272272        AssertPtr(pResp);
    273273
     
    348348
    349349    /* Dito. */
    350     GuestDnDResponse *pResp = GuestDnDInst()->response();
     350    GuestDnDResponse *pResp = GUESTDNDINST()->response();
    351351    AssertPtr(pResp);
    352352
     
    961961    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
    962962
    963     GuestDnD *pInst = GuestDnDInst();
     963    GuestDnD *pInst = GUESTDNDINST();
    964964    if (!pInst)
    965965        return VERR_INVALID_POINTER;
     
    10961096    AssertPtr(pCtx->mpResp);
    10971097
    1098     GuestDnD *pInst = GuestDnDInst();
     1098    GuestDnD *pInst = GUESTDNDINST();
    10991099    if (!pInst)
    11001100        return VERR_INVALID_POINTER;
     
    12011201    AssertPtr(pCtx->mpResp);
    12021202
    1203     GuestDnD *pInst = GuestDnDInst();
     1203    GuestDnD *pInst = GUESTDNDINST();
    12041204    if (!pInst)
    12051205        return VERR_INVALID_POINTER;
  • trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp

    r78084 r78093  
    307307
    308308    /* Adjust the coordinates in a multi-monitor setup. */
    309     int rc = GuestDnDInst()->adjustScreenCoordinates(aScreenId, &aX, &aY);
     309    int rc = GUESTDNDINST()->adjustScreenCoordinates(aScreenId, &aX, &aY);
    310310    if (RT_SUCCESS(rc))
    311311    {
     
    322322        Msg.setNextUInt32(cbFormats);
    323323
    324         rc = GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
     324        rc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    325325        if (RT_SUCCESS(rc))
    326326        {
    327             GuestDnDResponse *pResp = GuestDnDInst()->response();
     327            GuestDnDResponse *pResp = GUESTDNDINST()->response();
    328328            if (pResp && RT_SUCCESS(pResp->waitForGuestResponse()))
    329329                resAction = GuestDnD::toMainAction(pResp->getActionDefault());
     
    385385    HRESULT hr = S_OK;
    386386
    387     int rc = GuestDnDInst()->adjustScreenCoordinates(aScreenId, &aX, &aY);
     387    int rc = GUESTDNDINST()->adjustScreenCoordinates(aScreenId, &aX, &aY);
    388388    if (RT_SUCCESS(rc))
    389389    {
     
    400400        Msg.setNextUInt32(cbFormats);
    401401
    402         rc = GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
     402        rc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    403403        if (RT_SUCCESS(rc))
    404404        {
    405             GuestDnDResponse *pResp = GuestDnDInst()->response();
     405            GuestDnDResponse *pResp = GUESTDNDINST()->response();
    406406            if (pResp && RT_SUCCESS(pResp->waitForGuestResponse()))
    407407                resAction = GuestDnD::toMainAction(pResp->getActionDefault());
     
    440440        Msg.setNextUInt32(0); /** @todo ContextID not used yet. */
    441441
    442     int rc = GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
     442    int rc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    443443    if (RT_SUCCESS(rc))
    444444    {
    445         GuestDnDResponse *pResp = GuestDnDInst()->response();
     445        GuestDnDResponse *pResp = GUESTDNDINST()->response();
    446446        if (pResp)
    447447            pResp->waitForGuestResponse();
     
    507507
    508508    /* Adjust the coordinates in a multi-monitor setup. */
    509     HRESULT hr = GuestDnDInst()->adjustScreenCoordinates(aScreenId, &aX, &aY);
     509    HRESULT hr = GUESTDNDINST()->adjustScreenCoordinates(aScreenId, &aX, &aY);
    510510    if (SUCCEEDED(hr))
    511511    {
     
    522522        Msg.setNextUInt32(cbFormats);
    523523
    524         int vrc = GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
     524        int vrc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    525525        if (RT_SUCCESS(vrc))
    526526        {
    527             GuestDnDResponse *pResp = GuestDnDInst()->response();
     527            GuestDnDResponse *pResp = GUESTDNDINST()->response();
    528528            AssertPtr(pResp);
    529529
     
    625625
    626626    /* Ditto. */
    627     GuestDnDResponse *pResp = GuestDnDInst()->response();
     627    GuestDnDResponse *pResp = GUESTDNDINST()->response();
    628628    AssertPtr(pResp);
    629629
     
    838838    }
    839839
    840     int rc = GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
     840    int rc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    841841    if (RT_SUCCESS(rc))
    842842        rc = updateProgress(pData, pCtx->mpResp, pData->getMeta().getSize());
     
    869869    Msg.setNextUInt32(0);                                                /** @todo cbChecksum; not used yet. */
    870870
    871     int rc = GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
     871    int rc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    872872
    873873    LogFlowFuncLeaveRC(rc);
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