VirtualBox

Ignore:
Timestamp:
Jan 25, 2023 1:28:38 AM (23 months ago)
Author:
vboxsync
Message:

Main/include: rc -> hrc/vrc. Enabled scm rc checks. bugref:10223

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/vector.h

    r98103 r98296  
    206206                                 void *pvElement)
    207207{
    208     int rc2;
    209208    AssertReturn(pvec->muTypeHash == uTypeHash, VERR_INVALID_PARAMETER);
    210     if (   pvec->mcElements == pvec->mcCapacity
    211         && RT_FAILURE((rc2 = VEC_EXPAND(pvec))))
    212         return rc2;
     209    if (pvec->mcElements == pvec->mcCapacity)
     210    {
     211        int vrc2 = VEC_EXPAND(pvec);
     212        if (RT_FAILURE(vrc2))
     213            return vrc2;
     214    }
    213215    memcpy(VEC_GET_ELEMENT_OBJ(pvec->mpvaElements, pvec->mcbElement,
    214216                               pvec->mcElements), pvElement, pvec->mcbElement);
     
    221223                                 void *pv)
    222224{
    223     int rc2;
    224225    AssertReturn(pvec->muTypeHash == uTypeHash, VERR_INVALID_PARAMETER);
    225     if (   pvec->mcElements == pvec->mcCapacity
    226         && RT_FAILURE((rc2 = VEC_EXPAND(pvec))))
    227         return rc2;
     226    if (pvec->mcElements == pvec->mcCapacity)
     227    {
     228        int vrc2 = VEC_EXPAND(pvec);
     229        if (RT_FAILURE(vrc2))
     230            return vrc2;
     231    }
    228232    VEC_GET_ELEMENT_PTR(pvec->mpvaElements, pvec->mcElements) = pv;
    229233    ++pvec->mcElements;
Note: See TracChangeset for help on using the changeset viewer.

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