VirtualBox

Changeset 74244 in vbox


Ignore:
Timestamp:
Sep 13, 2018 2:21:37 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
125037
Message:

IPRT/rest: RTCRestArrayBase::serializeAsJson - don't emut comma after
the last array element (fix off by one test).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/rest/RTCRestArrayBase.cpp

    r74193 r74244  
    103103        {
    104104            m_papElements[i]->serializeAsJson(a_rDst);
    105             if (i < m_cElements)
     105            if (i < m_cElements - 1)
    106106                a_rDst.printf(",\n");
    107107            else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette