From 9504b7ac03c4382b10bab9998df2d556b813a16d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 24 Apr 2019 12:42:16 +0200 Subject: [PATCH] fix(Bar): typo --- include/bar.hpp | 2 ++ src/bar.cpp | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/bar.hpp b/include/bar.hpp index 5c6b675..eb0d420 100644 --- a/include/bar.hpp +++ b/include/bar.hpp @@ -44,6 +44,8 @@ class Bar { "Requested width: {} exceeds the minimum width: {} required by the modules"; static inline const std::string BAR_SIZE_MSG = "Bar configured (width: {}, height: {}) for output: {}"; + static inline const std::string SIZE_DEFINED = + "{} size is defined in the config file so it will stay like that"; static void layerSurfaceHandleConfigure(void *, struct zwlr_layer_surface_v1 *, uint32_t, uint32_t, uint32_t); static void layerSurfaceHandleClosed(void *, struct zwlr_layer_surface_v1 *); diff --git a/src/bar.cpp b/src/bar.cpp index effcc84..33b0043 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -51,8 +51,7 @@ waybar::Bar::Bar(struct waybar_output* w_output) std::cout << fmt::format(MIN_HEIGHT_MSG, height_, ev->height) << std::endl; } if (output->config["height"].isUInt()) { - std::cout << "Height size is defined in the config file so it will stay like that" - << std::endl; + std::cout << fmt::format(SIZE_DEFINED, "Height") << std::endl; } else { tmp_height = ev->height; } @@ -63,8 +62,7 @@ waybar::Bar::Bar(struct waybar_output* w_output) std::cout << fmt::format(MIN_WIDTH_MSG, width_, ev->width) << std::endl; } if (output->config["width"].isUInt()) { - std::cout << "Height size is defined in the config file so it will stay like that" - << std::endl; + std::cout << fmt::format(SIZE_DEFINED, "Width") << std::endl; } else { tmp_width = ev->width; }