mirror of
https://github.com/polybar/polybar.git
synced 2026-03-08 09:18:46 +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 _MODULES_SCRIPT_HPP_
|
||||
#define _MODULES_SCRIPT_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "modules/base.hpp"
|
||||
#include "services/command.hpp"
|
||||
@ -8,7 +7,7 @@ namespace modules
|
||||
{
|
||||
DefineModule(ScriptModule, TimerModule)
|
||||
{
|
||||
const char *TAG_OUTPUT = "<output>";
|
||||
static constexpr auto TAG_OUTPUT = "<output>";
|
||||
|
||||
std::unique_ptr<Builder> builder;
|
||||
|
||||
@ -25,12 +24,10 @@ namespace modules
|
||||
protected:
|
||||
|
||||
public:
|
||||
ScriptModule(const std::string& name);
|
||||
explicit ScriptModule(const std::string& name);
|
||||
|
||||
bool update();
|
||||
bool build(Builder *builder, const std::string& tag);
|
||||
std::string get_output();
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user