Changeset 74181 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Sep 10, 2018 12:43:30 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 124956
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/rest/rest-primary-object-types.cpp
r74176 r74181 1398 1398 int RTCRestDate::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 1399 1399 { 1400 setNull(); 1401 1400 1402 RTJSONVALTYPE enmType = RTJsonValueGetType(a_rCursor.m_hValue); 1401 1403 if (enmType == RTJSONVALTYPE_STRING) … … 1419 1421 1420 1422 if (enmType == RTJSONVALTYPE_NULL) 1421 { 1422 setNull(); 1423 return VINF_SUCCESS; 1424 } 1423 return VINF_SUCCESS; 1425 1424 1426 1425 return a_rCursor.m_pPrimary->addError(a_rCursor, VERR_REST_WRONG_JSON_TYPE_FOR_DATE, "wrong JSON type for date: %s", … … 1446 1445 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 1447 1446 { 1447 setNull(); 1448 1448 if (a_rValue.startsWithWord("null", RTCString::CaseInsensitive)) 1449 { 1450 setNull(); 1451 return VINF_SUCCESS; 1452 } 1449 return VINF_SUCCESS; 1453 1450 1454 1451 int rc = m_strFormatted.assignNoThrow(a_rValue); … … 1598 1595 int RTCRestDate::format(kFormat a_enmFormat) 1599 1596 { 1600 m_fNullIndicator = true; 1601 m_enmFormat = a_enmFormat; 1597 m_fNullIndicator = false; 1598 m_fTimeSpecOkay = true; 1599 m_enmFormat = a_enmFormat; 1602 1600 int rc; 1603 1601 switch (a_enmFormat)
Note:
See TracChangeset
for help on using the changeset viewer.