Changeset 37884 in vbox
- Timestamp:
- Jul 12, 2011 10:15:23 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstGuestCtrlParseBuffer.cpp
r37883 r37884 20 20 #include <map> 21 21 22 #include <VBox/com/string.h>23 24 22 #include <iprt/string.h> 23 #include <iprt/cpp/ministring.h> 25 24 26 25 #include <iprt/test.h> 27 26 #include <iprt/stream.h> 28 29 using namespace com;30 27 31 28 /** @todo Use original source of GuestCtrlImpl.cpp! */ … … 35 32 char *pszValue; 36 33 } 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;34 typedef std::map< RTCString, VBOXGUESTCTRL_BUFFER_VALUE > GuestBufferMap; 35 typedef std::map< RTCString, VBOXGUESTCTRL_BUFFER_VALUE >::iterator GuestBufferMapIter; 36 typedef std::map< RTCString, VBOXGUESTCTRL_BUFFER_VALUE >::const_iterator GuestBufferMapIterConst; 40 37 41 38 char pszUnterm1[] = { 'a', 's', 'd', 'f' }; 39 40 #ifndef RT_OS_WINDOWS 41 # define BYTE uint8_t 42 #endif 42 43 43 44 static struct … … 120 121 memcpy(pszKey, pszStart, uKeyLen); 121 122 122 mapBuf[ Utf8Str(pszKey)].pszValue = NULL;123 mapBuf[RTCString(pszKey)].pszValue = NULL; 123 124 124 125 if (uValLen) … … 133 134 memcpy(pszVal, pszSep + 1, uValLen); 134 135 135 mapBuf[ Utf8Str(pszKey)].pszValue = pszVal;136 mapBuf[RTCString(pszKey)].pszValue = pszVal; 136 137 } 137 138
Note:
See TracChangeset
for help on using the changeset viewer.

