Changeset 86778 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Oct 31, 2020 1:42:13 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 141176
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/rest/RTCRestStringMapBase.cpp
r82968 r86778 119 119 int RTCRestStringMapBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 120 120 { 121 if (RTJsonValueGetType(a_rCursor.m_hValue) == RTJSONVALTYPE_NULL) 122 { 123 setNull(); 124 return VINF_SUCCESS; 125 } 126 121 127 /* 122 128 * Make sure the object starts out with an empty map. … … 261 267 bool RTCRestStringMapBase::containsKey(const char *a_pszKey) const RT_NOEXCEPT 262 268 { 269 if (isNull()) 270 return false; 271 263 272 return RTStrSpaceGet((PRTSTRSPACE)&m_Map, a_pszKey) != NULL; 264 273 } … … 273 282 bool RTCRestStringMapBase::remove(const char *a_pszKey) RT_NOEXCEPT 274 283 { 284 if (isNull()) 285 return false; 286 275 287 MapEntry *pRemoved = (MapEntry *)RTStrSpaceRemove(&m_Map, a_pszKey); 276 288 if (pRemoved) … … 423 435 RTCRestObjectBase *RTCRestStringMapBase::getWorker(const char *a_pszKey) RT_NOEXCEPT 424 436 { 437 if (isNull()) 438 return NULL; 439 425 440 MapEntry *pHit = (MapEntry *)RTStrSpaceGet(&m_Map, a_pszKey); 426 441 if (pHit) … … 432 447 RTCRestObjectBase const *RTCRestStringMapBase::getWorker(const char *a_pszKey) const RT_NOEXCEPT 433 448 { 449 if (isNull()) 450 return NULL; 451 434 452 MapEntry const *pHit = (MapEntry const *)RTStrSpaceGet((PRTSTRSPACE)&m_Map, a_pszKey); 435 453 if (pHit)
Note:
See TracChangeset
for help on using the changeset viewer.