mirror of
https://github.com/polybar/polybar.git
synced 2026-03-17 13:47:06 +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:
@ -6,11 +6,9 @@
|
||||
|
||||
using namespace modules;
|
||||
|
||||
ScriptModule::ScriptModule(const std::string& name_) : TimerModule(name_, 1s)
|
||||
ScriptModule::ScriptModule(const std::string& name_)
|
||||
: TimerModule(name_, 1s), builder(std::make_unique<Builder>(true)), counter(0)
|
||||
{
|
||||
this->counter = 0;
|
||||
this->builder = std::make_unique<Builder>(true);
|
||||
|
||||
this->exec = config::get<std::string>(name(), "exec");
|
||||
|
||||
this->interval = std::chrono::duration<double>(
|
||||
|
||||
Reference in New Issue
Block a user