Changeset 72894 in vbox for trunk/include/VBox
- Timestamp:
- Jul 4, 2018 5:01:01 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/Guid.h
r69107 r72894 196 196 Guid& operator=(const char *str) 197 197 { 198 if (!str || !*str) 199 { 200 ::RTUuidClear(&mUuid); 201 mGuidState = GUID_ZERO; 202 } 203 else 204 { 205 mGuidState = GUID_NORMAL; 206 int rc = ::RTUuidFromStr(&mUuid, str); 207 if (RT_FAILURE(rc)) 208 { 209 ::RTUuidClear(&mUuid); 210 mGuidState = GUID_INVALID; 211 } 212 else if (isZero()) 213 mGuidState = GUID_ZERO; 214 } 215 dbg_refresh(); 198 initString(str); 216 199 return *this; 217 200 } … … 219 202 Guid& operator=(CBSTR str) 220 203 { 221 if (!str || !*str) 222 { 223 ::RTUuidClear(&mUuid); 224 mGuidState = GUID_ZERO; 225 } 226 else 227 { 228 mGuidState = GUID_NORMAL; 229 int rc = ::RTUuidFromUtf16(&mUuid, str); 230 if (RT_FAILURE(rc)) 231 { 232 ::RTUuidClear(&mUuid); 233 mGuidState = GUID_INVALID; 234 } 235 else if (isZero()) 236 mGuidState = GUID_ZERO; 237 } 238 dbg_refresh(); 204 initBSTR(str); 239 205 return *this; 240 206 }
Note:
See TracChangeset
for help on using the changeset viewer.