Changeset 76603 in vbox
- Timestamp:
- Jan 2, 2019 4:35:58 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h
r76581 r76603 22 22 #endif 23 23 24 /* Define GUI log group: */ 25 // WORKAROUND: 26 // This define should go *before* VBox/log.h include! 27 #define LOG_GROUP LOG_GROUP_GUI 28 24 29 /* Qt includes: */ 25 30 #include <QEvent> … … 32 37 #include "COMEnums.h" 33 38 34 /* Define GUI log group: */35 // WORKAROUND:36 // This define should go *before* VBox/log.h include!37 #ifndef VBOX_WITH_PRECOMPILED_HEADERS38 # define LOG_GROUP LOG_GROUP_GUI39 #endif40 41 39 /* Other VBox includes: */ 42 40 #include <VBox/log.h> … … 44 42 45 43 /* Defines: */ 46 #ifdef DEBUG 47 # define AssertWrapperOk(w) \ 48 AssertMsg (w.isOk(), (#w " is not okay (RC=0x%08X)", w.lastRC())) 49 # define AssertWrapperOkMsg(w, m) \ 50 AssertMsg (w.isOk(), (#w ": " m " (RC=0x%08X)", w.lastRC())) 51 #else /* !DEBUG */ 52 # define AssertWrapperOk(w) do {} while (0) 53 # define AssertWrapperOkMsg(w, m) do {} while (0) 54 #endif /* !DEBUG */ 55 56 #ifndef SIZEOF_ARRAY 57 # define SIZEOF_ARRAY(a) (sizeof(a) / sizeof(a[0])) 44 #ifdef RT_STRICT 45 # define AssertWrapperOk(w) AssertMsg(w.isOk(), (#w " is not okay (RC=0x%08X)", w.lastRC())) 46 # define AssertWrapperOkMsg(w, m) AssertMsg(w.isOk(), (#w ": " m " (RC=0x%08X)", w.lastRC())) 47 #else 48 # define AssertWrapperOk(w) do {} while (0) 49 # define AssertWrapperOkMsg(w, m) do {} while (0) 58 50 #endif 59 51 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r76553 r76603 404 404 * a sequence of all modifier keys contained in the host sequence, hoping 405 405 * that the user will choose something which the guest does not interpret. */ 406 for (uint i = 0; i < SIZEOF_ARRAY(m_pressedKeys); i++)406 for (uint i = 0; i < RT_ELEMENTS(m_pressedKeys); i++) 407 407 { 408 408 if ((m_pressedKeys[i] & IsKeyPressed) || (m_pressedKeys[i] & IsExtKeyPressed)) … … 1626 1626 static LONG PrintMake[] = { 0xE0, 0x2A, 0xE0, 0x37 }; 1627 1627 pCodes = PrintMake; 1628 uCodesCount = SIZEOF_ARRAY(PrintMake);1628 uCodesCount = RT_ELEMENTS(PrintMake); 1629 1629 } 1630 1630 else … … 1632 1632 static LONG PrintBreak[] = { 0xE0, 0xB7, 0xE0, 0xAA }; 1633 1633 pCodes = PrintBreak; 1634 uCodesCount = SIZEOF_ARRAY(PrintBreak);1634 uCodesCount = RT_ELEMENTS(PrintBreak); 1635 1635 } 1636 1636 } … … 1642 1642 static LONG Pause[] = { 0xE1, 0x1D, 0x45, 0xE1, 0x9D, 0xC5 }; 1643 1643 pCodes = Pause; 1644 uCodesCount = SIZEOF_ARRAY(Pause);1644 uCodesCount = RT_ELEMENTS(Pause); 1645 1645 } 1646 1646 else … … 1857 1857 { 1858 1858 QVector <LONG> codes(2); 1859 for (uint i = 0; i < SIZEOF_ARRAY(m_pressedKeys); ++ i)1859 for (uint i = 0; i < RT_ELEMENTS(m_pressedKeys); ++ i) 1860 1860 { 1861 1861 uint8_t os = m_pressedKeysCopy[i];
Note:
See TracChangeset
for help on using the changeset viewer.