Skip to content

Commit

Permalink
Merge pull request keepassxreboot#517 from weslly/fix-compile
Browse files Browse the repository at this point in the history
Fix OSX El Capitan compilation issue
  • Loading branch information
louib authored Apr 20, 2017
2 parents 943c315 + 5fbf4af commit ab3e009
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/autotype/mac/AutoTypeMac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ab3e009

Please sign in to comment.