refactor(core): Clean-up

- use "#pragma once" instead of the regular include guard
- fix errors and warnings reported by cppcheck
This commit is contained in:
Michael Carlberg
2016-05-31 05:58:58 +02:00
parent d0499d4d15
commit 39d3f61497
81 changed files with 588 additions and 730 deletions

View File

@ -1,5 +1,4 @@
#ifndef _EVENTLOOP_HPP_
#define _EVENTLOOP_HPP_
#pragma once
#include <map>
@ -46,7 +45,7 @@ class EventLoop
bool running();
public:
EventLoop(std::string input_pipe);
explicit EventLoop(std::string input_pipe);
void start();
void stop();
@ -56,5 +55,3 @@ class EventLoop
void add_stdin_subscriber(const std::string& module_name);
};
#endif