VirtualBox

Changeset 37884 in vbox


Ignore:
Timestamp:
Jul 12, 2011 10:15:23 AM (13 years ago)
Author:
vboxsync
Message:

Build fix, drop COM dependencies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstGuestCtrlParseBuffer.cpp

    r37883 r37884  
    2020#include <map>
    2121
    22 #include <VBox/com/string.h>
    23 
    2422#include <iprt/string.h>
     23#include <iprt/cpp/ministring.h>
    2524
    2625#include <iprt/test.h>
    2726#include <iprt/stream.h>
    28 
    29 using namespace com;
    3027
    3128/** @todo Use original source of GuestCtrlImpl.cpp! */
     
    3532    char *pszValue;
    3633} VBOXGUESTCTRL_BUFFER_VALUE, *PVBOXGUESTCTRL_BUFFER_VALUE;
    37 typedef std::map< Utf8Str, VBOXGUESTCTRL_BUFFER_VALUE > GuestBufferMap;
    38 typedef std::map< Utf8Str, VBOXGUESTCTRL_BUFFER_VALUE >::iterator GuestBufferMapIter;
    39 typedef std::map< Utf8Str, VBOXGUESTCTRL_BUFFER_VALUE >::const_iterator GuestBufferMapIterConst;
     34typedef std::map< RTCString, VBOXGUESTCTRL_BUFFER_VALUE > GuestBufferMap;
     35typedef std::map< RTCString, VBOXGUESTCTRL_BUFFER_VALUE >::iterator GuestBufferMapIter;
     36typedef std::map< RTCString, VBOXGUESTCTRL_BUFFER_VALUE >::const_iterator GuestBufferMapIterConst;
    4037
    4138char pszUnterm1[] = { 'a', 's', 'd', 'f' };
     39
     40#ifndef RT_OS_WINDOWS
     41# define BYTE uint8_t
     42#endif
    4243
    4344static struct
     
    120121            memcpy(pszKey, pszStart, uKeyLen);
    121122
    122             mapBuf[Utf8Str(pszKey)].pszValue = NULL;
     123            mapBuf[RTCString(pszKey)].pszValue = NULL;
    123124
    124125            if (uValLen)
     
    133134                memcpy(pszVal, pszSep + 1, uValLen);
    134135
    135                 mapBuf[Utf8Str(pszKey)].pszValue = pszVal;
     136                mapBuf[RTCString(pszKey)].pszValue = pszVal;
    136137            }
    137138
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