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:
asqueella@gmail.com 2007-05-02 01:03:46 -07:00
parent 48cbd7d72e
commit 055d3f4525

View File

@ -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;
};
}
};