VirtualBox

Changeset 36120 in vbox for trunk/src/VBox/Frontends/VBoxBFE


Ignore:
Timestamp:
Mar 1, 2011 3:04:10 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70284
Message:

FE/BFE: fix some warnings

Location:
trunk/src/VBox/Frontends/VBoxBFE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.h

    r28800 r36120  
    2828{
    2929 NetworkAdapterCount = 4,
    30  MaxSharedFolders = 16,
     30 MaxSharedFolders = 16
    3131};
    3232
  • trunk/src/VBox/Frontends/VBoxBFE/VirtualBoxBase.h

    r33540 r36120  
    307307        }
    308308    };
    309 };
     309}
    310310
    311311////////////////////////////////////////////////////////////////////////////////
     
    519519
    520520    // sets the ready state of the object
    521     void setReady(bool isReady)
    522     {
    523         mReady = isReady;
     521    void setReady(bool ready)
     522    {
     523        mReady = ready;
    524524    }
    525525    // get the ready state of the object
     
    586586    }
    587587
    588     void attach (D *data) {
    589         AssertMsg (data, ("new data must not be NULL"));
    590         if (data && mData != data) {
     588    void attach (D *pData) {
     589        AssertMsg (pData, ("new data must not be NULL"));
     590        if (pData && mData != pData) {
    591591            if (mData && !mIsShared)
    592592                delete mData;
    593             mData = data;
     593            mData = pData;
    594594            mIsShared = false;
    595595        }
    596596    }
    597597
    598     void attach (Shareable &data) {
     598    void attach (Shareable &Data) {
    599599        AssertMsg (
    600             data.mData == mData || !data.mIsShared,
     600            Data.mData == mData || !Data.mIsShared,
    601601            ("new data must not be shared")
    602602        );
    603         if (this != &data && !data.mIsShared) {
    604             attach (data.mData);
    605             data.mIsShared = true;
    606         }
    607     }
    608 
    609     void share (D *data) {
    610         AssertMsg (data, ("new data must not be NULL"));
    611         if (mData != data) {
     603        if (this != &Data && !Data.mIsShared) {
     604            attach (Data.mData);
     605            Data.mIsShared = true;
     606        }
     607    }
     608
     609    void share (D *pData) {
     610        AssertMsg (pData, ("new data must not be NULL"));
     611        if (mData != pData) {
    612612            if (mData && !mIsShared)
    613613                delete mData;
    614             mData = data;
     614            mData = pData;
    615615            mIsShared = true;
    616616        }
    617617    }
    618618
    619     void share (const Shareable &data) { share (data.mData); }
    620 
    621     void attachCopy (const D *data) {
    622         AssertMsg (data, ("data to copy must not be NULL"));
    623         if (data)
    624             attach (new D (*data));
    625     }
    626 
    627     void attachCopy (const Shareable &data) {
    628         attachCopy (data.mData);
     619    void share (const Shareable &Data) { share (Data.mData); }
     620
     621    void attachCopy (const D *pData) {
     622        AssertMsg (pData, ("data to copy must not be NULL"));
     623        if (pData)
     624            attach (new D (*pData));
     625    }
     626
     627    void attachCopy (const Shareable &Data) {
     628        attachCopy (Data.mData);
    629629    }
    630630
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