From 6c489ccd40a17f2e21345e2a9ff4504cef305c9a Mon Sep 17 00:00:00 2001 From: MysticWorld Date: Sat, 10 Oct 2015 17:02:37 +0200 Subject: [PATCH] removed useless comment and change syntax for struct Binding --- keybindings.cpp | 6 ------ keybindings.h | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/keybindings.cpp b/keybindings.cpp index 69c8b05..777ddb8 100644 --- a/keybindings.cpp +++ b/keybindings.cpp @@ -86,12 +86,6 @@ void KeyBindings::setHoldAction(int key, int action) * @info: This class contains a list of actions available in a given situation (context). */ -/* Implementation of Context class - * @author: Thomas Brandého - * @info: This class contains a list of action associated to a given situation (context). - */ - - Context::Context(std::string _name, std::vector _actions): name(_name), actions(_actions) { diff --git a/keybindings.h b/keybindings.h index d202f1a..fd7d94b 100644 --- a/keybindings.h +++ b/keybindings.h @@ -12,11 +12,11 @@ #define NO_KEY -1 #define NO_ACTION -1 -typedef struct{ +struct Binding{ int action; int key; int type; -} Binding; +}; class IKeysMap{ public: