- Timestamp:
- Jul 11, 2016 11:56:22 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.cpp
r60362 r62156 686 686 687 687 # elif defined(VBOX_WS_X11) 688 //# pragma GCC diagnostic push689 //# pragma GCC diagnostic ignored "-Wdeprecated-declarations"690 688 691 689 /* Make sure it's generic XCB event: */ … … 705 703 /* Parse key-event: */ 706 704 xcb_key_press_event_t *pKeyEvent = static_cast<xcb_key_press_event_t*>(pMessage); 705 RT_GCC_NO_DEPRECATED_BEGIN 707 706 const KeySym ks = ::XKeycodeToKeysym(QX11Info::display(), pKeyEvent->detail, 0); 707 RT_GCC_NO_DEPRECATED_END 708 708 const int iKeySym = static_cast<const int>(ks); 709 709 … … 715 715 } 716 716 717 //# pragma GCC diagnostic pop718 717 # else 719 718 … … 831 830 832 831 # elif defined(VBOX_WS_X11) 833 # if RT_GNUC_PREREQ(4, 6)834 # pragma GCC diagnostic push835 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"836 # endif837 832 838 833 bool UIHostComboEditorPrivate::x11Event(XEvent *pEvent) … … 845 840 /* Get key-code: */ 846 841 XKeyEvent *pKeyEvent = (XKeyEvent*)pEvent; 842 RT_GCC_NO_DEPRECATED_BEGIN 847 843 KeySym ks = ::XKeycodeToKeysym(pKeyEvent->display, pKeyEvent->keycode, 0); 844 RT_GCC_NO_DEPRECATED_END 848 845 849 846 int iKeySym = (int)ks; … … 859 856 } 860 857 861 # if RT_GNUC_PREREQ(4, 6)862 # pragma GCC diagnostic pop863 # endif864 858 # endif /* VBOX_WS_X11 */ 865 859
Note:
See TracChangeset
for help on using the changeset viewer.