VirtualBox

Changeset 63315 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 11, 2016 10:17:35 AM (8 years ago)
Author:
vboxsync
Message:

QtGui: warnings

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h

    r62493 r63315  
    4343{
    4444public:
     45    virtual ~CheckIfSuitableBy() { /* Makes MSC happy. */ }
     46
    4547    /** Determines whether passed @a pItem is suitable. */
    4648    virtual bool isItSuitable(UIMediumItem *pItem) const = 0;
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/win/VBoxUtils-win.h

    r62493 r63315  
    1616 */
    1717
    18 #ifndef __VBoxUtils_WIN_h__
    19 #define __VBoxUtils_WIN_h__
     18#ifndef ___VBoxUtils_WIN_h___
     19#define ___VBoxUtils_WIN_h___
    2020
    2121/* Qt includes: */
     
    2323
    2424/* Platform includes: */
    25 #include "Windows.h"
     25#include <iprt/win/windows.h>
    2626
    2727/* Namespace for native window sub-system functions: */
     
    3232}
    3333
    34 #endif /* __VBoxUtils_WIN_h__ */
     34#endif
    3535
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/win/WinKeyboard.cpp

    r62493 r63315  
    192192static bool doesCurrentLayoutHaveAltGr()
    193193{
    194     /** Keyboard state array with VK_CONTROL and VK_MENU depressed. */
    195     const BYTE auKeyStates[256] =
    196         { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x80, 0x80 };
     194    /* Keyboard state array with VK_CONTROL and VK_MENU depressed. */
     195    static const BYTE s_auKeyStates[256] =
     196    { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x80, 0x80 };
    197197    WORD ach;
    198198    unsigned i;
     
    200200    for (i = '0'; i <= VK_OEM_102; ++i)
    201201    {
    202         if (ToAscii(i, 0, auKeyStates, &ach, 0))
     202        if (ToAscii(i, 0, s_auKeyStates, &ach, 0))
    203203            break;
    204204        /* Skip ranges of virtual keys which are undefined or not relevant. */
     
    269269                                                   bool fExtendedKey) const
    270270{
     271    if (iDownScanCode != 0x1d /* scan code: Control */ || fExtendedKey)
     272        return false;
     273
     274    LONG messageTime = GetMessageTime();
    271275    MSG peekMsg;
    272     LONG messageTime = GetMessageTime();
    273 
    274     if (   iDownScanCode != 0x1d /* scan code: Control */ || fExtendedKey)
    275         return false;
    276276    if (!PeekMessage(&peekMsg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_NOREMOVE))
    277277        return false;
    278 
    279         if (messageTime != peekMsg.time)
    280             return false;
    281         if (   fKeyDown
    282         && (peekMsg.message != WM_KEYDOWN && peekMsg.message != WM_SYSKEYDOWN))
     278    if (messageTime != (LONG)peekMsg.time)
     279        return false;
     280
     281    if (   fKeyDown
     282        && peekMsg.message != WM_KEYDOWN
     283        && peekMsg.message != WM_SYSKEYDOWN)
    283284        return false;
    284285    if (   !fKeyDown
    285         && (peekMsg.message != WM_KEYUP && peekMsg.message != WM_SYSKEYUP))
    286         return false;
    287     if (   ((RT_HIWORD(peekMsg.lParam) & 0xFF) != 0x38 /* scan code: Alt */)
     286        && peekMsg.message != WM_KEYUP
     287        && peekMsg.message != WM_SYSKEYUP)
     288        return false;
     289    if (   (RT_HIWORD(peekMsg.lParam) & 0xFF) != 0x38 /* scan code: Alt */
    288290        || !(RT_HIWORD(peekMsg.lParam) & KF_EXTENDED))
    289291        return false;
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/win/WinKeyboard.h

    r62493 r63315  
    1616 */
    1717
    18 #ifndef __WinKeyboard_h__
    19 #define __WinKeyboard_h__
     18#ifndef ___WinKeyboard_h___
     19#define ___WinKeyboard_h___
    2020
    2121/* Platform includes: */
    22 #include "Windows.h"
     22#include <iprt/win/windows.h>
    2323
    2424void * WinHidDevicesKeepLedsState(void);
     
    8080        FAKE_CONTROL_DOWN
    8181    } m_enmFakeControlDetectionState;
    82     DWORD m_timeOfLastKeyEvent;
     82    LONG m_timeOfLastKeyEvent;
    8383};
    84 #endif /* __WinKeyboard_h__ */
    8584
     85#endif
     86
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp

    r62493 r63315  
    13871387        case QEvent::GraphicsSceneDragLeave:
    13881388            return processDragLeaveEvent(static_cast<QGraphicsSceneDragDropEvent*>(pEvent));
     1389        default: break; /* Shut up MSC */
    13891390    }
    13901391
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDefs.h

    r62493 r63315  
    5656    /* Creates empty cache item: */
    5757    UISettingsCache() { m_value = qMakePair(CacheData(), CacheData()); }
     58
     59    virtual ~UISettingsCache() { /* Makes MSC happy */ }
    5860
    5961    /* Returns the NON-modifiable REFERENCE to the initial cached data: */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupStack.cpp

    r62493 r63315  
    271271            break;
    272272        }
     273        default: break; /* Shuts up MSC.  */
    273274    }
    274275
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizardPage.h

    r62493 r63315  
    1616 */
    1717
    18 #ifndef __UIWizardPage_h__
    19 #define __UIWizardPage_h__
     18#ifndef ___UIWizardPage_h___
     19#define ___UIWizardPage_h___
    2020
    2121/* Global includes: */
     
    3434class UIWizardPageBase
    3535{
     36public:
     37    virtual ~UIWizardPageBase() { /* Makes MSC happy. */ }
     38
    3639protected:
    3740
     
    7477};
    7578
    76 #endif // __UIWizardPage_h__
     79#endif
    7780
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