VirtualBox

Changeset 45416 in vbox


Ignore:
Timestamp:
Apr 8, 2013 9:52:26 PM (11 years ago)
Author:
vboxsync
Message:

Build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestControl/service.cpp

    r45415 r45416  
    474474{
    475475    ClientState(void)
    476         : mID(0),
    477           mSvcHelpers(NULL),
     476        : mSvcHelpers(NULL),
     477          mID(0),
    478478          mFlags(0), mContextFilter(0),
    479479          mHostCmdRc(VINF_SUCCESS), mHostCmdTries(0),
     
    482482
    483483    ClientState(PVBOXHGCMSVCHELPERS pSvcHelpers, uint32_t uClientID)
    484         : mID(uClientID),
    485           mSvcHelpers(pSvcHelpers),
     484        : mSvcHelpers(pSvcHelpers),
     485          mID(uClientID),
    486486          mFlags(0), mContextFilter(0),
    487487          mHostCmdRc(VINF_SUCCESS), mHostCmdTries(0),
     
    501501        if (curCmd != mHostCmdList.end())
    502502            Dequeue(curCmd);
    503     }
    504 
    505     void Dequeue(HostCommand *pHostCmd)
    506     {
    507         AssertPtrReturnVoid(pHostCmd);
    508 
    509         HostCmdListIter curItem = mHostCmdList.begin();
    510         while (curItem != mHostCmdList.end())
    511         {
    512             if ((*curItem) == pHostCmd)
    513             {
    514                 Dequeue(curItem);
    515                 break;
    516             }
    517 
    518             curItem++;
    519         }
    520503    }
    521504
     
    679662
    680663        if (fRemove)
    681             Dequeue(pHostCmd);
     664        {
     665            /** @todo Fix this (slow) lookup. Too late today. */
     666            HostCmdListIter curItem = mHostCmdList.begin();
     667            while (curItem != mHostCmdList.end())
     668            {
     669                if ((*curItem) == pHostCmd)
     670                {
     671                    Dequeue(curItem);
     672                    break;
     673                }
     674
     675                curItem++;
     676            }
     677        }
    682678
    683679        LogFlowFunc(("[Client %RU32] Returned with rc=%Rrc\n", mID, 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