diff options
author | Sebastien Braun | 2010-10-10 01:41:48 +0200 |
---|---|---|
committer | Sebastien Braun | 2010-10-10 14:05:37 +0200 |
commit | 2d31480bf052e3176edfbdc914ff5a29d54dc46c (patch) | |
tree | a7b4af185e81e4277921a5579bed15cd32730992 /src | |
parent | Fix wrong policy: KillX11Handler only works on Linux, due to dependency on th... (diff) | |
download | pvs-2d31480bf052e3176edfbdc914ff5a29d54dc46c.tar.gz pvs-2d31480bf052e3176edfbdc914ff5a29d54dc46c.tar.xz pvs-2d31480bf052e3176edfbdc914ff5a29d54dc46c.zip |
Introduce an implicit logical AND into Require policy
Diffstat (limited to 'src')
-rw-r--r-- | src/input/inputEventHandler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/inputEventHandler.h b/src/input/inputEventHandler.h index 735b75c..46e688c 100644 --- a/src/input/inputEventHandler.h +++ b/src/input/inputEventHandler.h @@ -92,12 +92,12 @@ typedef Security<AllowEverybody> Unprivileged; // as porting efforts are already underway, we include the necessary // machinery anyway. ///////////////////////////////////////////////////////////////////////// -template<typename SystemTrait> +template<IMPLICIT_TYPE_LIST_PARAMS(Trait)> BEGIN_POLICY_CLASS(Require) { static const bool areSystemRequirementsFulfilled = - NextPolicy::areSystemRequirementsFulfilled && - detail::Matches<SystemTrait, detail::SystemTraits>::value; + NextPolicy::areSystemRequirementsFulfilled || + detail::Matches<AllOf<IMPLICIT_TYPE_LIST_ARGS(Trait)>, detail::SystemTraits>::value; } END_POLICY_CLASS |