Changeset 36529 in vbox for trunk/src/VBox
- Timestamp:
- Apr 4, 2011 1:54:13 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70953
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestProp.cpp
r33540 r36529 31 31 #include <iprt/string.h> 32 32 #ifndef VBOX_VBGLR3_XFREE86 33 # include <iprt/ mem.h>33 # include <iprt/cpp/mem.h> 34 34 #endif 35 35 #include <iprt/assert.h> … … 607 607 { 608 608 /* Create the handle. */ 609 RT MemAutoPtr<VBGLR3GUESTPROPENUM, VbglR3GuestPropEnumFree> Handle;609 RTCMemAutoPtr<VBGLR3GUESTPROPENUM, VbglR3GuestPropEnumFree> Handle; 610 610 Handle = (PVBGLR3GUESTPROPENUM)RTMemAllocZ(sizeof(VBGLR3GUESTPROPENUM)); 611 611 if (!Handle) … … 618 618 619 619 /* Pack the pattern array */ 620 RT MemAutoPtr<char> Patterns;620 RTCMemAutoPtr<char> Patterns; 621 621 Patterns = (char *)RTMemAlloc(cchPatterns); 622 622 size_t off = 0; … … 632 632 * information. */ 633 633 uint32_t cchBuf = 4096; 634 RT MemAutoPtr<char> Buf;634 RTCMemAutoPtr<char> Buf; 635 635 636 636 /* In reading the guest property data we are racing against the host -
trunk/src/VBox/Additions/x11/VBoxClient/VBoxClient.h
r30681 r36529 26 26 /** A simple class describing a service. VBoxClient will run exactly one 27 27 * service per invocation. */ 28 class Service : public iprt::non_copyable28 class Service : public RTCNonCopyable 29 29 { 30 30 public: -
trunk/src/VBox/HostServices/GuestControl/service.cpp
r35035 r36529 150 150 * Class containing the shared information service functionality. 151 151 */ 152 class Service : public iprt::non_copyable152 class Service : public RTCNonCopyable 153 153 { 154 154 private: -
trunk/src/VBox/HostServices/GuestProperties/service.cpp
r33540 r36529 147 147 * Class containing the shared information service functionality. 148 148 */ 149 class Service : public iprt::non_copyable149 class Service : public RTCNonCopyable 150 150 { 151 151 private: -
trunk/src/VBox/Runtime/testcase/tstMemAutoPtr.cpp
r31157 r36529 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - Testcase the RT MemAutoPtr template.3 * IPRT - Testcase the RTCMemAutoPtr template. 4 4 */ 5 5 … … 28 28 * Header Files * 29 29 *******************************************************************************/ 30 #include <iprt/ mem.h>30 #include <iprt/cpp/mem.h> 31 31 #include <iprt/stream.h> 32 32 #include <iprt/initterm.h> … … 61 61 extern "C" int tstMemAutoPtrDisas1(void **ppv) 62 62 { 63 RT MemAutoPtr<TSTMEMAUTOPTRSTRUCT> Handle(1);63 RTCMemAutoPtr<TSTMEMAUTOPTRSTRUCT> Handle(1); 64 64 if (!Handle) 65 65 { … … 135 135 */ 136 136 { 137 RT MemAutoPtr<char> NilObj;137 RTCMemAutoPtr<char> NilObj; 138 138 CHECK_EXPR(!NilObj); 139 139 CHECK_EXPR(NilObj.get() == NULL); … … 143 143 144 144 { 145 RT MemAutoPtr<char> Alloc(10);145 RTCMemAutoPtr<char> Alloc(10); 146 146 CHECK_EXPR(Alloc.get() != NULL); 147 147 char *pch = Alloc.release(); … … 149 149 CHECK_EXPR(Alloc.get() == NULL); 150 150 151 RT MemAutoPtr<char> Manage(pch);151 RTCMemAutoPtr<char> Manage(pch); 152 152 CHECK_EXPR(Manage.get() == pch); 153 153 CHECK_EXPR(&Manage[0] == pch); … … 161 161 */ 162 162 { 163 RT MemAutoPtr<char, RTMemEfAutoFree<char>, RTMemEfReallocNP> Electric(10);163 RTCMemAutoPtr<char, RTCMemEfAutoFree<char>, RTMemEfReallocNP> Electric(10); 164 164 CHECK_EXPR(Electric.get() != NULL); 165 165 Electric[0] = '0'; … … 178 178 g_cFrees = 0; 179 179 { 180 RT MemAutoPtr<char, tstMemAutoPtrDestructorCounter, RTMemEfReallocNP> FreeIt(128);180 RTCMemAutoPtr<char, tstMemAutoPtrDestructorCounter, RTMemEfReallocNP> FreeIt(128); 181 181 FreeIt[127] = '0'; 182 182 } … … 185 185 g_cFrees = 0; 186 186 { 187 RT MemAutoPtr<char, tstMemAutoPtrDestructorCounter, RTMemEfReallocNP> FreeIt2(128);187 RTCMemAutoPtr<char, tstMemAutoPtrDestructorCounter, RTMemEfReallocNP> FreeIt2(128); 188 188 FreeIt2[127] = '1'; 189 189 FreeIt2.reset(); … … 196 196 g_cFrees = 0; 197 197 { 198 RT MemAutoPtr<char, tstMemAutoPtrDestructorCounter, RTMemEfReallocNP> DontFreeIt(256);198 RTCMemAutoPtr<char, tstMemAutoPtrDestructorCounter, RTMemEfReallocNP> DontFreeIt(256); 199 199 DontFreeIt[255] = '0'; 200 200 RTMemEfFreeNP(DontFreeIt.release()); … … 204 204 g_cFrees = 0; 205 205 { 206 RT MemAutoPtr<char, tstMemAutoPtrDestructorCounter, RTMemEfReallocNP> FreeIt3(128);206 RTCMemAutoPtr<char, tstMemAutoPtrDestructorCounter, RTMemEfReallocNP> FreeIt3(128); 207 207 FreeIt3[127] = '0'; 208 208 CHECK_EXPR(FreeIt3.realloc(128)); … … 219 219 g_cFrees = 0; 220 220 { 221 RT MemAutoPtr<char, tstMemAutoPtrDestructorCounter, RTMemEfReallocNP> FreeIt4;221 RTCMemAutoPtr<char, tstMemAutoPtrDestructorCounter, RTMemEfReallocNP> FreeIt4; 222 222 CHECK_EXPR(FreeIt4.alloc(123)); 223 223 CHECK_EXPR(FreeIt4.realloc(543)); … … 231 231 */ 232 232 { 233 RT MemAutoPtr<TSTMEMAUTOPTRSTRUCT> Struct1(1);233 RTCMemAutoPtr<TSTMEMAUTOPTRSTRUCT> Struct1(1); 234 234 Struct1->a = 0x11223344; 235 235 Struct1->b = 0x55667788; … … 266 266 */ 267 267 { 268 RT MemAutoPtr<uint64_t, RTMemAutoDestructor<uint64_t>, tstMemAutoPtrAllocatorNoZero> Zeroed1(1, true);268 RTCMemAutoPtr<uint64_t, RTCMemAutoDestructor<uint64_t>, tstMemAutoPtrAllocatorNoZero> Zeroed1(1, true); 269 269 CHECK_EXPR(*Zeroed1 == 0); 270 270 } 271 271 272 272 { 273 RT MemAutoPtr<uint64_t, RTMemAutoDestructor<uint64_t>, tstMemAutoPtrAllocatorNoZero> Zeroed2;273 RTCMemAutoPtr<uint64_t, RTCMemAutoDestructor<uint64_t>, tstMemAutoPtrAllocatorNoZero> Zeroed2; 274 274 Zeroed2.alloc(5, true); 275 275 CHECK_EXPR(Zeroed2[0] == 0); -
trunk/src/VBox/Storage/testcase/VDIoRnd.cpp
r35596 r36529 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * VBox HDD container test utility - I/O data generator. 4 4 */ … … 15 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 16 */ 17 17 18 #define LOGGROUP LOGGROUP_DEFAULT 18 19 #include <iprt/log.h> … … 20 21 #include <iprt/mem.h> 21 22 #include <iprt/rand.h> 23 #include <iprt/assert.h> 22 24 23 25 #include "VDIoRnd.h"
Note:
See TracChangeset
for help on using the changeset viewer.