mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 379085 - Build with GCC-4.3 fails due to extra semi-colons and '-pedantic'p=Art Haas <ahaas@airmail.net>r+sr=roc
This commit is contained in:
parent
48cbd7d72e
commit
055d3f4525
@ -453,25 +453,25 @@ private:
|
||||
/* 32 = 2^5 = 0x20 */
|
||||
*aMask = PRUint32(1) << (aKeyCode & 0x1F);
|
||||
return &mKeyDownFlags[(aKeyCode >> 5)];
|
||||
};
|
||||
}
|
||||
|
||||
PRBool IsKeyDown(PRUint32 aKeyCode) {
|
||||
PRUint32 mask;
|
||||
PRUint32* flag = GetFlagWord32(aKeyCode, &mask);
|
||||
return ((*flag) & mask) != 0;
|
||||
};
|
||||
}
|
||||
|
||||
void SetKeyDownFlag(PRUint32 aKeyCode) {
|
||||
PRUint32 mask;
|
||||
PRUint32* flag = GetFlagWord32(aKeyCode, &mask);
|
||||
*flag |= mask;
|
||||
};
|
||||
}
|
||||
|
||||
void ClearKeyDownFlag(PRUint32 aKeyCode) {
|
||||
PRUint32 mask;
|
||||
PRUint32* flag = GetFlagWord32(aKeyCode, &mask);
|
||||
*flag &= ~mask;
|
||||
};
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user