Skip to content

Commit

Permalink
Use QByteArrayLiteral in WinEventFilter
Browse files Browse the repository at this point in the history
Rather than a raw char literal to compare the message type.
  • Loading branch information
askmeaboutlo0m committed Sep 30, 2024
1 parent a39e268 commit 2f8d5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/desktop/utils/wineventfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ bool WinEventFilter::nativeEventFilter(
compat::NativeEventResult result)
{
Q_UNUSED(result);
if(eventType == "windows_generic_MSG") {
if(eventType == QByteArrayLiteral("windows_generic_MSG")) {
MSG *msg = static_cast<MSG *>(message);
switch(msg->message) {
case WM_KEYDOWN:
Expand Down

0 comments on commit 2f8d5cf

Please sign in to comment.