VirtualBox

Changeset 52816 in vbox for trunk


Ignore:
Timestamp:
Sep 22, 2014 1:46:28 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Few small bug-fixes, thanks PVS

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIFileDialog.cpp

    r52730 r52816  
    481481            ofn.lStructSize = sizeof (OPENFILENAME);
    482482            ofn.hwndOwner = topParent ? topParent->winId() : 0;
    483             ofn.lpstrFilter = (TCHAR *) winFilters.isNull() ? 0 : winFilters.utf16();
     483            ofn.lpstrFilter = (TCHAR *)(winFilters.isNull() ? 0 : winFilters.utf16());
    484484            ofn.lpstrFile = buf;
    485485            ofn.nMaxFile = sizeof (buf) - 1;
    486             ofn.lpstrInitialDir = (TCHAR *) workDir.isNull() ? 0 : workDir.utf16();
    487             ofn.lpstrTitle = (TCHAR *) title.isNull() ? 0 : title.utf16();
     486            ofn.lpstrInitialDir = (TCHAR *)(workDir.isNull() ? 0 : workDir.utf16());
     487            ofn.lpstrTitle = (TCHAR *)(title.isNull() ? 0 : title.utf16());
    488488            ofn.Flags = (OFN_NOCHANGEDIR | OFN_HIDEREADONLY |
    489489                         OFN_EXPLORER | OFN_ENABLEHOOK |
     
    738738            ofn.lStructSize = sizeof (OPENFILENAME);
    739739            ofn.hwndOwner = topParent ? topParent->winId() : 0;
    740             ofn.lpstrFilter = (TCHAR *) winFilters.isNull() ? 0 : winFilters.utf16();
     740            ofn.lpstrFilter = (TCHAR *)(winFilters.isNull() ? 0 : winFilters.utf16());
    741741            ofn.lpstrFile = buf;
    742742            ofn.nMaxFile = sizeof (buf) - 1;
    743             ofn.lpstrInitialDir = (TCHAR *) workDir.isNull() ? 0 : workDir.utf16();
    744             ofn.lpstrTitle = (TCHAR *) title.isNull() ? 0 : title.utf16();
     743            ofn.lpstrInitialDir = (TCHAR *)(workDir.isNull() ? 0 : workDir.utf16());
     744            ofn.lpstrTitle = (TCHAR *)(title.isNull() ? 0 : title.utf16());
    745745            ofn.Flags = (OFN_NOCHANGEDIR | OFN_HIDEREADONLY |
    746746                          OFN_EXPLORER | OFN_ENABLEHOOK |
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.h

    r52727 r52816  
    5252    ModelItem(int number, ModelItem_type type, ModelItem *pParent = NULL);
    5353
    54     ~ModelItem();
     54    virtual ~ModelItem();
    5555
    5656    ModelItem *parent() const { return m_pParentItem; }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp

    r52733 r52816  
    181181            if (!field("password").toString().isEmpty())
    182182                uri = QString("%1:%2").arg(uri).arg(field("password").toString());
    183             if (!field("username").toString().isEmpty() || !field("username").toString().isEmpty())
     183            if (!field("username").toString().isEmpty() || !field("password").toString().isEmpty())
    184184                uri = QString("%1@").arg(uri);
    185185            uri = QString("%1%2/%3/%4").arg(uri).arg("object.storage.network.com").arg(field("bucket").toString()).arg(path);
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