Changeset 74414 in vbox for trunk/src/VBox/Runtime/common/rest/RTCRestArrayBase.cpp
- Timestamp:
- Sep 21, 2018 6:23:01 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/rest/RTCRestArrayBase.cpp
r74402 r74414 34 34 #include <iprt/err.h> 35 35 #include <iprt/string.h> 36 #include <iprt/cpp/restoutput.h> 36 37 37 38 … … 117 118 if (!m_fNullIndicator) 118 119 { 119 a_rDst.printf("[\n"); 120 unsigned const uOldIndent = a_rDst.incrementIndent(); 121 120 uint32_t const uOldState = a_rDst.beginArray(); 122 121 for (size_t i = 0; i < m_cElements; i++) 123 122 { 123 a_rDst.valueSeparator(); 124 124 m_papElements[i]->serializeAsJson(a_rDst); 125 if (i < m_cElements - 1) 126 a_rDst.printf(",\n"); 127 else 128 a_rDst.printf("\n"); 129 } 130 131 a_rDst.setIndent(uOldIndent); 132 a_rDst.printf("]"); 125 } 126 a_rDst.endArray(uOldState); 133 127 } 134 128 else 135 a_rDst. printf("null");129 a_rDst.nullValue(); 136 130 return a_rDst; 137 131 }
Note:
See TracChangeset
for help on using the changeset viewer.