diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-02 07:04:58 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-11-02 05:07:01 +0000 |
commit | cd44a7288e09ffadd34d9fe1a71b7462429c5c65 (patch) | |
tree | 6fb2221d11e36c843c143c55642979fb706a46cd /include/vcl | |
parent | 1a178bd5a2249b49d61ccd8c5643aa6cb501f25b (diff) |
revert the KeyCode asserts
there are two many places it appears to trigger in real use.
will have to fix those first.
Change-Id: I536b7925033d5337ba360db3c2cf40ec205157ca
Reviewed-on: https://gerrit.libreoffice.org/12193
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/keycod.hxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/vcl/keycod.hxx b/include/vcl/keycod.hxx index 7e7ece3d8d08..a1da5d90d20d 100644 --- a/include/vcl/keycod.hxx +++ b/include/vcl/keycod.hxx @@ -79,15 +79,12 @@ public: inline vcl::KeyCode::KeyCode( sal_uInt16 nKey, sal_uInt16 nModifier ) { - assert(nKey <= KEY_CODE); - assert(nModifier == 0 || (nModifier >= 0x1000 && nModifier <= 0xf000)); nKeyCodeAndModifiers = nKey | nModifier; eFunc = KeyFuncType::DONTKNOW; } inline vcl::KeyCode::KeyCode( sal_uInt16 nKey, bool bShift, bool bMod1, bool bMod2, bool bMod3 ) { - assert(nKey <= KEY_CODE); nKeyCodeAndModifiers = nKey; if( bShift ) nKeyCodeAndModifiers |= KEY_SHIFT; |