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