VirtualBox

Changeset 74024 in vbox


Ignore:
Timestamp:
Sep 2, 2018 1:51:50 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124771
Message:

IPRT/rest: Implemented header collection (x-obmcs-header-collection) and multi-query array mapping. Renamed RTCRestObjectBase::getType() to typeName() to avoid clashing with generated code. bugref:9167 [build fix]

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/restbase.h

    r74023 r74024  
    11831183
    11841184        /* Map class must be friend so it can use the MapEntry constructor. */
    1185         friend RTCRestStringMapBase;
     1185        friend class RTCRestStringMapBase;
    11861186    };
    11871187
  • trunk/src/VBox/Runtime/common/rest/RTCRestClientRequestBase.cpp

    r74023 r74024  
    152152                             VERR_REST_INTERAL_ERROR_2);
    153153                RTCRestArrayBase const *pArray = (RTCRestArrayBase const *)a_papQueryParamObjs[i];
    154                 for (size_t i = 0; i < pArray->size(); i++)
     154                for (size_t j = 0; j < pArray->size(); j++)
    155155                {
    156                     RTCRestObjectBase const *pObj = pArray->atBase(i);
     156                    RTCRestObjectBase const *pObj = pArray->atBase(j);
    157157                    int rc = pObj->toString(&strTmpVal, a_paQueryParams[i].fFlags & ~RTCRestObjectBase::kCollectionFormat_Mask);
    158158                    AssertRCReturn(rc, rc);
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