VirtualBox

Changeset 17999 in vbox


Ignore:
Timestamp:
Mar 17, 2009 8:22:40 AM (16 years ago)
Author:
vboxsync
Message:

Additions/common: remove some obsolete typecasts

Location:
trunk/src/VBox/Additions/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r17210 r17999  
    11461146    {
    11471147        VBoxGuestHGCMDisconnectInfo Info;
    1148         Info.result = (uint32_t)VERR_WRONG_ORDER;           /** @todo Vitali, why is this member unsigned? */
     1148        Info.result = VERR_WRONG_ORDER;
    11491149        Info.u32ClientID = pDevExt->u32ClipboardClientId;
    11501150        rc = VbglHGCMDisconnect(&Info, VBoxGuestHGCMAsyncWaitCallback, pDevExt, RT_INDEFINITE_WAIT);
     
    11691169    strcpy(Info.Loc.u.host.achName, "VBoxSharedClipboard");
    11701170    Info.u32ClientID = 0;
    1171     Info.result = (uint32_t)VERR_WRONG_ORDER;
     1171    Info.result = VERR_WRONG_ORDER;
    11721172
    11731173    rc = VbglHGCMConnect(&Info, VBoxGuestHGCMAsyncWaitCallback, pDevExt, RT_INDEFINITE_WAIT);
     
    11771177        return rc;
    11781178    }
    1179     if (RT_FAILURE((int32_t)Info.result))
     1179    if (RT_FAILURE(Info.result))
    11801180    {
    11811181        LogRel(("VBoxGuestCommonIOCtl: CLIPBOARD_CONNECT: VbglHGCMConnected -> rc=%Rrc\n", rc));
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibClipboard.cpp

    r10552 r17999  
    4343{
    4444    VBoxGuestHGCMConnectInfo Info;
    45     Info.result = (uint32_t)VERR_WRONG_ORDER; /** @todo drop the cast when the result type has been fixed! */
     45    Info.result = VERR_WRONG_ORDER;
    4646    Info.Loc.type = VMMDevHGCMLoc_LocalHost_Existing;
    4747    memset(&Info.Loc.u, 0, sizeof(Info.Loc.u));
     
    6969{
    7070    VBoxGuestHGCMDisconnectInfo Info;
    71     Info.result = (uint32_t)VERR_WRONG_ORDER;  /** @todo drop the cast when the result type has been fixed! */
     71    Info.result = VERR_WRONG_ORDER;
    7272    Info.u32ClientID = u32ClientId;
    7373
     
    9393    VBoxClipboardGetHostMsg Msg;
    9494
    95     Msg.hdr.result = (uint32_t)VERR_WRONG_ORDER;  /** @todo drop the cast when the result type has been fixed! */
     95    Msg.hdr.result = VERR_WRONG_ORDER;
    9696    Msg.hdr.u32ClientID = u32ClientId;
    9797    Msg.hdr.u32Function = VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG;
     
    142142    VBoxClipboardReadData Msg;
    143143
    144     Msg.hdr.result = (uint32_t)VERR_WRONG_ORDER;  /** @todo drop the cast when the result type has been fixed! */
     144    Msg.hdr.result = VERR_WRONG_ORDER;
    145145    Msg.hdr.u32ClientID = u32ClientId;
    146146    Msg.hdr.u32Function = VBOX_SHARED_CLIPBOARD_FN_READ_DATA;
     
    182182    VBoxClipboardFormats Msg;
    183183
    184     Msg.hdr.result = (uint32_t)VERR_WRONG_ORDER;  /** @todo drop the cast when the result type has been fixed! */
     184    Msg.hdr.result = VERR_WRONG_ORDER;
    185185    Msg.hdr.u32ClientID = u32ClientId;
    186186    Msg.hdr.u32Function = VBOX_SHARED_CLIPBOARD_FN_FORMATS;
     
    210210{
    211211    VBoxClipboardWriteData Msg;
    212     Msg.hdr.result = (uint32_t)VERR_WRONG_ORDER;  /** @todo drop the cast when the result type has been fixed! */
     212    Msg.hdr.result = VERR_WRONG_ORDER;
    213213    Msg.hdr.u32ClientID = u32ClientId;
    214214    Msg.hdr.u32Function = VBOX_SHARED_CLIPBOARD_FN_WRITE_DATA;
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