VirtualBox

Changeset 60045 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Mar 15, 2016 8:37:54 PM (9 years ago)
Author:
vboxsync
Message:

Main/ConsoleImpl2: warnings (found by PVS)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r60010 r60045  
    25322532            BOOL fEnabledSerPort = FALSE;
    25332533            if (serialPort)
     2534            {
    25342535                hrc = serialPort->COMGETTER(Enabled)(&fEnabledSerPort);                     H();
     2536            }
    25352537            if (!fEnabledSerPort)
    25362538                continue;
     
    26692671        hrc = pMachine->COMGETTER(AudioAdapter)(audioAdapter.asOutParam());                 H();
    26702672        if (audioAdapter)
     2673        {
    26712674            hrc = audioAdapter->COMGETTER(Enabled)(&fAudioEnabled);                         H();
     2675        }
    26722676
    26732677        if (fAudioEnabled)
     
    47064710                    pos = ppos = 0;
    47074711#define ITERATE_TO_NEXT_TERM(res, str, pos, ppos) \
    4708     do { \
     4712    { \
    47094713        pos = str.find(",", ppos); \
    47104714        if (pos == Utf8Str::npos) \
     
    47164720        Log2((#res " %s pos:%d, ppos:%d\n", res.c_str(), pos, ppos)); \
    47174721        ppos = pos + 1; \
    4718     } while (0)
     4722    } /* no do { ... } while because of 'continue' */
    47194723                    ITERATE_TO_NEXT_TERM(strName, utf, pos, ppos);
    47204724                    ITERATE_TO_NEXT_TERM(strProto, utf, pos, ppos);
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