mirror of
https://github.com/polybar/polybar.git
synced 2026-03-07 16:59:20 +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:
@ -44,14 +44,10 @@ const Options& bar_opts() {
|
||||
/**
|
||||
* Bar constructor
|
||||
*/
|
||||
Bar::Bar()
|
||||
Bar::Bar() : config_path(config::get_bar_path()), opts(std::make_unique<Options>())
|
||||
{
|
||||
this->config_path = config::get_bar_path();
|
||||
|
||||
struct Options defaults;
|
||||
|
||||
this->opts = std::make_unique<Options>();
|
||||
|
||||
try {
|
||||
this->opts->locale = config::get<std::string>(this->config_path, "locale");
|
||||
std::locale::global(std::locale(this->opts->locale.c_str()));
|
||||
|
||||
Reference in New Issue
Block a user