summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Braun2010-10-12 05:16:37 +0200
committerSebastien Braun2010-10-12 05:16:37 +0200
commit6fcd6c00510d4da9c72d1d44c769bb0d546ca9ef (patch)
tree4631f9a0221158e5527367e615d90360bda3acd5
parentBetter error handling for PVSPrivInputHandler (diff)
downloadpvs-6fcd6c00510d4da9c72d1d44c769bb0d546ca9ef.tar.gz
pvs-6fcd6c00510d4da9c72d1d44c769bb0d546ca9ef.tar.xz
pvs-6fcd6c00510d4da9c72d1d44c769bb0d546ca9ef.zip
Fix InputEventHandler logic bug
Entered break instead of return.
-rw-r--r--src/input/inputEventHandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/inputEventHandler.h b/src/input/inputEventHandler.h
index 11e2f4e..a2e943e 100644
--- a/src/input/inputEventHandler.h
+++ b/src/input/inputEventHandler.h
@@ -309,7 +309,7 @@ public:
switch(i.next()->handle(event, context))
{
case InputEventHandlerBase::HANDLER_MATCHED:
- break;
+ return;
case InputEventHandlerBase::HANDLER_NOT_ALLOWED:
context->hasBeenDenied = true;
case InputEventHandlerBase::HANDLER_NOT_APPLICABLE: