VirtualBox

Ignore:
Timestamp:
Jul 11, 2018 3:52:53 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123630
Message:

FE/Qt: Global preferences: Extension page: Small rework to calm down cppcheck and move toward Qt guideline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp

    r72435 r73070  
    2323# include <QHeaderView>
    2424# include <QMenu>
     25# ifdef VBOX_WS_WIN
     26#  include <QTextStream>
     27# endif
    2528
    2629/* GUI includes: */
     
    372375            QString displayInfo;
    373376#ifdef VBOX_WS_WIN
    374             displayInfo.sprintf("hwnd=%#llx", (uint64_t)(uintptr_t)this->winId());
    375 #endif /* VBOX_WS_WIN */
     377            QTextStream stream(&displayInfo);
     378            stream.setNumberFlags(QTextStream::ShowBase);
     379            stream.setIntegerBase(16);
     380            stream << "hwnd=" << winId();
     381#endif
     382
    376383            /* Prepare uninstallation progress: */
    377384            CProgress progress = manager.Uninstall(strSelectedPackageName, false /* forced removal? */, displayInfo);
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