mirror of
https://github.com/polybar/polybar.git
synced 2026-02-14 06:35:44 +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:
@ -5,7 +5,7 @@
|
||||
|
||||
using namespace modules;
|
||||
|
||||
TextModule::TextModule(const std::string& name_) throw(UndefinedFormat) : StaticModule(name_) {
|
||||
TextModule::TextModule(const std::string& name_) : StaticModule(name_) {
|
||||
this->formatter->add(FORMAT, "", {});
|
||||
if (this->formatter->get(FORMAT)->value.empty())
|
||||
throw UndefinedFormat(FORMAT);
|
||||
|
||||
Reference in New Issue
Block a user