VirtualBox

Changeset 25012 in vbox


Ignore:
Timestamp:
Nov 26, 2009 3:06:37 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: fix some -Wshadow warnings

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/CIShared.h

    r8170 r25012  
    9999
    100100private:
    101     CIShared( Data *data ) : d( data ) {}
     101    CIShared( Data *aData ) : d( aData ) {}
    102102    Data *d;
    103103
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobalSettings.h

    r21711 r25012  
    8585
    8686    bool autoCapture() const { return data()->autoCapture; }
    87     void setAutoCapture (bool autoCapture) {
    88         mData()->autoCapture = autoCapture;
     87    void setAutoCapture (bool aAutoCapture)
     88    {
     89        mData()->autoCapture = aAutoCapture;
    8990        resetError();
    9091    }
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxUtils.h

    r17126 r25012  
    5353        if (aEvent->type() == QEvent::KeyPress || aEvent->type() == QEvent::KeyRelease)
    5454        {
    55             QKeyEvent *event = static_cast<QKeyEvent *> (aEvent);
    56             if (event->modifiers() & Qt::AltModifier)
     55            QKeyEvent *pEvent = static_cast<QKeyEvent *> (aEvent);
     56            if (pEvent->modifiers() & Qt::AltModifier)
    5757                return true;
    5858        }
  • trunk/src/VBox/Frontends/VirtualBox/src/QILabelSeparator.cpp

    r23223 r25012  
    7575    separator->setSizePolicy (QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
    7676
    77     QHBoxLayout *layout = new QHBoxLayout (this);
    78     VBoxGlobal::setLayoutMargin (layout, 0);
    79     layout->addWidget (mLabel);
    80     layout->addWidget (separator, Qt::AlignBottom);
     77    QHBoxLayout *pLayout = new QHBoxLayout (this);
     78    VBoxGlobal::setLayoutMargin (pLayout, 0);
     79    pLayout->addWidget (mLabel);
     80    pLayout->addWidget (separator, Qt::AlignBottom);
    8181}
    8282
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFilePathSelectorWidget.cpp

    r24766 r25012  
    390390        initDir = mHomeDir;
    391391
    392     QString path;
     392    QString selPath;
    393393    switch (mMode)
    394394    {
    395395        case Mode_File_Open:
    396             path = QIFileDialog::getOpenFileName (initDir, mFileFilters, parentWidget(), mFileDialogTitle); break;
     396            selPath = QIFileDialog::getOpenFileName (initDir, mFileFilters, parentWidget(), mFileDialogTitle); break;
    397397        case Mode_File_Save:
    398398            {
    399                 path = QIFileDialog::getSaveFileName (initDir, mFileFilters, parentWidget(), mFileDialogTitle);
    400                 if (!path.isEmpty() && QFileInfo (path).suffix().isEmpty())
    401                     path = QString ("%1.%2").arg (path).arg (mDefaultSaveExt);
     399                selPath = QIFileDialog::getSaveFileName (initDir, mFileFilters, parentWidget(), mFileDialogTitle);
     400                if (!selPath.isEmpty() && QFileInfo (selPath).suffix().isEmpty())
     401                    selPath = QString ("%1.%2").arg (selPath).arg (mDefaultSaveExt);
    402402                break;
    403403            }
    404404        case Mode_Folder:
    405             path = QIFileDialog::getExistingDirectory (initDir, parentWidget(), mFileDialogTitle); break;
    406     }
    407 
    408     if (path.isNull())
     405            selPath = QIFileDialog::getExistingDirectory (initDir, parentWidget(), mFileDialogTitle); break;
     406    }
     407
     408    if (selPath.isNull())
    409409        return;
    410410
    411     path.remove (QRegExp ("[\\\\/]$"));
    412     changePath (path);
     411    selPath.remove (QRegExp ("[\\\\/]$"));
     412    changePath (selPath);
    413413}
    414414
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