VirtualBox

Changeset 60054 in vbox


Ignore:
Timestamp:
Mar 15, 2016 9:46:31 PM (9 years ago)
Author:
vboxsync
Message:

never use AssertStmt(..., continue) but use AssertContinue(...) (look at the implementation of AssertStmt)

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r59996 r60054  
    96149614        const ComObjPtr<MediumAttachment> &pAtt = *it;
    96159615        // should never happen, but deal with NULL pointers in the list.
    9616         AssertStmt(!pAtt.isNull(), continue);
     9616        AssertContinue(!pAtt.isNull());
    96179617
    96189618        // getControllerName() needs caller+read lock
     
    1213512135        MediumAttachment* pAttach = *it;
    1213612136        /* just in case */
    12137         AssertStmt(pAttach, continue);
     12137        AssertContinue(pAttach);
    1213812138
    1213912139        AutoCaller localAutoCallerA(pAttach);
  • trunk/src/VBox/Main/src-server/Performance.cpp

    r56994 r60054  
    10751075
    10761076        /* just in case */
    1077         AssertStmt(!pMedium.isNull(), continue);
     1077        AssertContinue(!pMedium.isNull());
    10781078
    10791079        AutoCaller localAutoCaller(pMedium);
  • trunk/src/VBox/Runtime/generic/http-curl.cpp

    r59396 r60054  
    10491049{
    10501050    CFStringRef hStrProxyType = (CFStringRef)CFDictionaryGetValue(hDictProxy, kCFProxyTypeKey);
    1051     AssertStmt(hStrProxyType, continue);
     1051    AssertContinue(hStrProxyType);
    10521052
    10531053    /*
     
    11601160    {
    11611161        CFDictionaryRef hDictProxy = (CFDictionaryRef)CFArrayGetValueAtIndex(hArrayProxies, i);
    1162         AssertStmt(hDictProxy, continue);
     1162        AssertContinue(hDictProxy);
    11631163
    11641164        rcRet = rtHttpDarwinTryConfigProxy(pThis, hDictProxy, hUrlTarget, fIgnorePacType);
     
    12081208        {
    12091209            CFStringRef hStr = (CFStringRef)CFArrayGetValueAtIndex(hArray, i);
    1210             AssertStmt(hStr, continue);
    1211             AssertStmt(CFStringGetCString(hStr, szTmp, sizeof(szTmp), kCFStringEncodingUTF8), continue);
     1210            AssertContinue(hStr);
     1211            AssertContinue(CFStringGetCString(hStr, szTmp, sizeof(szTmp), kCFStringEncodingUTF8));
    12121212            RTStrToLower(szTmp);
    12131213
  • trunk/src/VBox/Runtime/r3/darwin/RTCrStoreCreateSnapshotById-darwin.cpp

    r57582 r60054  
    6262        {
    6363            CFDictionaryRef hDict = (CFDictionaryRef)CFArrayGetValueAtIndex(hTrustSettings, i);
    64             AssertStmt(CFGetTypeID(hDict) == CFDictionaryGetTypeID(), continue);
     64            AssertContinue(CFGetTypeID(hDict) == CFDictionaryGetTypeID());
    6565
    6666            CFNumberRef hNum = (CFNumberRef)CFDictionaryGetValue(hDict, kSecTrustSettingsResult);
    6767            if (hNum)
    6868            {
    69                 AssertStmt(CFGetTypeID(hNum) == CFNumberGetTypeID(), continue);
     69                AssertContinue(CFGetTypeID(hNum) == CFNumberGetTypeID());
    7070                SInt32 iNum;
    7171                if (CFNumberGetValue(hNum, kCFNumberSInt32Type, &iNum))
  • trunk/src/VBox/Runtime/r3/win/process-win.cpp

    r59817 r60054  
    777777            uNew.TokPriv.PrivilegeCount = 1;
    778778            uNew.TokPriv.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
    779             AssertStmt(LookupPrivilegeValue(NULL, s_aPrivileges[i].pszName, &uNew.TokPriv.Privileges[0].Luid), continue);
     779            AssertContinue(LookupPrivilegeValue(NULL, s_aPrivileges[i].pszName, &uNew.TokPriv.Privileges[0].Luid));
    780780            uOld = uNew;
    781781            SetLastError(NO_ERROR);
     
    10861086    {
    10871087        PACE_HEADER pAceHdr;
    1088         AssertStmt(GetAce(pDstAcl, i, (PVOID *)&pAceHdr), continue);
     1088        AssertContinue(GetAce(pDstAcl, i, (PVOID *)&pAceHdr));
    10891089        if (   pAceHdr->AceSize == cbAllowedAce
    10901090            && memcmp(pAceHdr, &AceBuf.Core, cbAllowedAce) == 0)
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