summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSebastien Braun2010-10-10 01:41:48 +0200
committerSebastien Braun2010-10-10 14:05:37 +0200
commit2d31480bf052e3176edfbdc914ff5a29d54dc46c (patch)
treea7b4af185e81e4277921a5579bed15cd32730992 /src
parentFix wrong policy: KillX11Handler only works on Linux, due to dependency on th... (diff)
downloadpvs-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.h6
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