Skip to content

Commit

Permalink
style(ui): fix spacing around pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
trollixx committed Apr 25, 2020
1 parent 2217383 commit 9cad81c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libs/ui/qxtglobalshortcut/qxtglobalshortcut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ bool QxtGlobalShortcutPrivate::activateShortcut(quint32 nativeKey, quint32 nativ
Example usage:
\code
QxtGlobalShortcut* shortcut = new QxtGlobalShortcut(window);
QxtGlobalShortcut *shortcut = new QxtGlobalShortcut(window);
connect(shortcut, SIGNAL(activated()), window, SLOT(toggleVisibility()));
shortcut->setShortcut(QKeySequence("Ctrl+Shift+F12"));
\endcode
Expand Down
2 changes: 1 addition & 1 deletion src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ quint32 QxtGlobalShortcutPrivate::nativeKeycode(Qt::Key key)
UCKeyboardLayout *header = (UCKeyboardLayout *)CFDataGetBytePtr(currentLayoutData);
UCKeyboardTypeHeader *table = header->keyboardTypeList;

uint8_t *data = (uint8_t*)header;
uint8_t *data = (uint8_t *)header;
// God, would a little documentation for this shit kill you...
for (quint32 i = 0; i < header->keyboardTypeCount; ++i) {
UCKeyStateRecordsIndex *stateRec = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ bool QxtGlobalShortcutPrivate::nativeEventFilter(const QByteArray &eventType,
if (eventType != "xcb_generic_event_t")
return false;

auto event = static_cast<xcb_generic_event_t*>(message);
auto event = static_cast<xcb_generic_event_t *>(message);
if ((event->response_type & ~0x80) != XCB_KEY_PRESS)
return false;

Expand Down

0 comments on commit 9cad81c

Please sign in to comment.