summaryrefslogtreecommitdiff
path: root/include/vcl/commandevent.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-24 12:07:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-25 07:03:08 +0000
commit63a6de2cab00e949751fcb35f4814844fc4ec71e (patch)
treec745e6d946e076f75ebaa31849ef2a77bd81b868 /include/vcl/commandevent.hxx
parentdaf9156c76049873583f1f7c5de96524d7eba68a (diff)
convert MODKEY constants to o3tl::typed_flags
Change-Id: I53a6f6f6b12e0fb299e7d76e8e8f354ef3afbbb3 Reviewed-on: https://gerrit.libreoffice.org/31152 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/commandevent.hxx')
-rw-r--r--include/vcl/commandevent.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/vcl/commandevent.hxx b/include/vcl/commandevent.hxx
index 5b9cc09a7eaa..51dab89536c3 100644
--- a/include/vcl/commandevent.hxx
+++ b/include/vcl/commandevent.hxx
@@ -187,15 +187,15 @@ public:
class VCL_DLLPUBLIC CommandModKeyData
{
private:
- sal_uInt16 mnCode;
+ ModKeyFlags mnCode;
public:
- CommandModKeyData( sal_uInt16 nCode );
+ CommandModKeyData( ModKeyFlags nCode );
- bool IsMod1() const { return (mnCode & MODKEY_MOD1) != 0; }
- bool IsMod2() const { return (mnCode & MODKEY_MOD2) != 0; }
- bool IsLeftShift() const { return (mnCode & MODKEY_LSHIFT) != 0; }
- bool IsRightShift() const { return (mnCode & MODKEY_RSHIFT) != 0; }
+ bool IsMod1() const { return bool(mnCode & ModKeyFlags::Mod1Msk); }
+ bool IsMod2() const { return bool(mnCode & ModKeyFlags::Mod2Msk); }
+ bool IsLeftShift() const { return bool(mnCode & ModKeyFlags::LeftShift); }
+ bool IsRightShift() const { return bool(mnCode & ModKeyFlags::RightShift); }
};
enum class ShowDialogId