VirtualBox

Ignore:
Timestamp:
Nov 26, 2009 11:31:46 AM (15 years ago)
Author:
vboxsync
Message:

Main: enable -Wshadow gcc option to warn about shadowed variables and fix all resulting warnings; in particular, rename some stack and member variables and rename getter methods like id() to getId()

File:
1 edited

Legend:

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

    r24934 r24989  
    8080    void setImplicit(bool aImplicit) { m->implicit = aImplicit; }
    8181
    82     const ComObjPtr<Medium> &medium() const { return m->medium; }
    83     Bstr controllerName() const { return m->controllerName; }
    84     LONG port() const { return m->port; }
    85     LONG device() const { return m->device; }
    86     DeviceType_T type() const { return m->type; }
    87     bool passthrough() const { AutoReadLock lock(this); return m->passthrough; }
     82    const ComObjPtr<Medium>& getMedium() const { return m->medium; }
     83    Bstr getControllerName() const { return m->controllerName; }
     84    LONG getPort() const { return m->port; }
     85    LONG getDevice() const { return m->device; }
     86    DeviceType_T getType() const { return m->type; }
     87    bool getPassthrough() const { AutoReadLock lock(this); return m->passthrough; }
    8888
    8989    bool matches(CBSTR aControllerName, LONG aPort, LONG aDevice)
     
    110110
    111111    /** Get a unique and somewhat descriptive name for logging. */
    112     const char *logName(void) const { return mLogName.c_str(); }
     112    const char* getLogName(void) const { return mLogName.c_str(); }
    113113
    114114    /** For com::SupportErrorInfoImpl. */
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