This commit is contained in:
Alex
2018-08-20 14:50:45 +02:00
committed by GitHub
parent b7e3d10fb7
commit 49232eed8d
30 changed files with 261 additions and 235 deletions

View File

@ -1,7 +1,7 @@
#include "ALabel.hpp"
waybar::ALabel::ALabel(Json::Value config)
: config_(std::move(config))
waybar::ALabel::ALabel(const Json::Value& config)
: config_(config)
{
if (config_["max-length"]) {
label_.set_max_width_chars(config_["max-length"].asUInt());