mirror of
https://github.com/polybar/polybar.git
synced 2026-04-30 19:33:37 +00:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user