From 5fbf4af59675c41eed2c95dbca49b74a2e339a02 Mon Sep 17 00:00:00 2001 From: Weslly Date: Thu, 20 Apr 2017 17:53:12 -0300 Subject: [PATCH] Fix OSX El Capitan compilation issue --- src/autotype/mac/AutoTypeMac.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/autotype/mac/AutoTypeMac.cpp b/src/autotype/mac/AutoTypeMac.cpp index 89435c263..51a5c5cda 100644 --- a/src/autotype/mac/AutoTypeMac.cpp +++ b/src/autotype/mac/AutoTypeMac.cpp @@ -403,12 +403,12 @@ uint16 AutoTypePlatformMac::qtToNativeKeyCode(Qt::Key key) // CGEventFlags AutoTypePlatformMac::qtToNativeModifiers(Qt::KeyboardModifiers modifiers, bool native) { - CGEventFlags nativeModifiers = 0; + CGEventFlags nativeModifiers = CGEventFlags(0); - CGEventFlags shiftMod = shiftKey; - CGEventFlags cmdMod = cmdKey; - CGEventFlags optionMod = optionKey; - CGEventFlags controlMod = controlKey; + CGEventFlags shiftMod = CGEventFlags(shiftKey); + CGEventFlags cmdMod = CGEventFlags(cmdKey); + CGEventFlags optionMod = CGEventFlags(optionKey); + CGEventFlags controlMod = CGEventFlags(controlKey); if (native) { shiftMod = kCGEventFlagMaskShift;