VirtualBox

Changeset 29618 in vbox


Ignore:
Timestamp:
May 18, 2010 12:07:30 PM (14 years ago)
Author:
vboxsync
Message:

Main/Medium: BOOL->bool in many places, gets rid of a gcc warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MediumImpl.cpp

    r29386 r29618  
    9696          setImageId(false),
    9797          setParentId(false),
    98           hostDrive(FALSE),
     98          hostDrive(false),
    9999          implicit(false),
    100100          numCreateDiffTasks(0),
     
    134134    HDDOpenMode hddOpenMode;
    135135
    136     BOOL autoReset : 1;
     136    bool autoReset : 1;
    137137
    138138    /** the following members are invalid after changing UUID on open */
    139     BOOL setImageId : 1;
    140     BOOL setParentId : 1;
     139    bool setImageId : 1;
     140    bool setParentId : 1;
    141141    const Guid imageId;
    142142    const Guid parentId;
    143143
    144     BOOL hostDrive : 1;
     144    bool hostDrive : 1;
    145145
    146146    typedef std::map <Bstr, Bstr> PropertyMap;
     
    747747
    748748    /* cannot be a host drive */
    749     m->hostDrive = FALSE;
     749    m->hostDrive = false;
    750750
    751751    /* No storage unit is created yet, no need to queryInfo() */
     
    835835
    836836    /* cannot be a host drive */
    837     m->hostDrive = FALSE;
     837    m->hostDrive = false;
    838838
    839839    /* remember the open mode (defaults to ReadWrite) */
     
    847847
    848848    /* save the new uuid values, will be used by queryInfo() */
    849     m->setImageId = aSetImageId;
     849    m->setImageId = !!aSetImageId;
    850850    unconst(m->imageId) = aImageId;
    851     m->setParentId = aSetParentId;
     851    m->setParentId = !!aSetParentId;
    852852    unconst(m->parentId) = aParentId;
    853853
     
    928928
    929929    /* assume not a host drive */
    930     m->hostDrive = FALSE;
     930    m->hostDrive = false;
    931931
    932932    /* optional */
     
    15481548    if (m->pParent)
    15491549        *aAutoReset = FALSE;
    1550 
    1551     *aAutoReset = m->autoReset;
     1550    else
     1551        *aAutoReset = m->autoReset;
    15521552
    15531553    return S_OK;
     
    15671567                        m->strLocationFull.raw());
    15681568
    1569     if (m->autoReset != aAutoReset)
    1570     {
    1571         m->autoReset = aAutoReset;
     1569    if (m->autoReset != !!aAutoReset)
     1570    {
     1571        m->autoReset = !!aAutoReset;
    15721572
    15731573        return m->pVirtualBox->saveSettings();
     
    30123012    /* optional, only for diffs, default is false */
    30133013    if (m->pParent)
    3014         data.fAutoReset = !!m->autoReset;
     3014        data.fAutoReset = m->autoReset;
    30153015    else
    30163016        data.fAutoReset = false;
     
    54015401        pTarget->m->state = MediumState_NotCreated;
    54025402
    5403         pTarget->m->autoReset = FALSE;
     5403        pTarget->m->autoReset = false;
    54045404
    54055405        /* reset UUID to prevent it from being reused next time */
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