From 0d99d3808952b58fee324970c864c3210b6f99e6 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sat, 25 Feb 2023 09:51:40 +0100 Subject: [PATCH 1/2] modules/network.cpp: Remove repeated "the" Signed-off-by: Elyes Haouas --- src/modules/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/network.cpp b/src/modules/network.cpp index 8409311..9e9a93a 100644 --- a/src/modules/network.cpp +++ b/src/modules/network.cpp @@ -98,7 +98,7 @@ waybar::modules::Network::Network(const std::string &id, const Json::Value &conf // Start with some "text" in the module's label_. update() will then // update it. Since the text should be different, update() will be able // to show or hide the event_box_. This is to work around the case where - // the module start with no text, but the the event_box_ is shown. + // the module start with no text, but the event_box_ is shown. label_.set_markup(""); auto bandwidth = readBandwidthUsage(); From 1af25094b71b8a4dba1fbad698009b4891e3dc79 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sat, 25 Feb 2023 09:55:04 +0100 Subject: [PATCH 2/2] Fix some typos Signed-off-by: Elyes Haouas --- src/modules/gamemode.cpp | 2 +- src/modules/sway/workspaces.cpp | 2 +- src/util/sanitize_str.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/gamemode.cpp b/src/modules/gamemode.cpp index 1b8d7fc..3b2213e 100644 --- a/src/modules/gamemode.cpp +++ b/src/modules/gamemode.cpp @@ -55,7 +55,7 @@ Gamemode::Gamemode(const std::string& id, const Json::Value& config) } box_.set_spacing(iconSpacing); - // Wether to use icon or not + // Whether to use icon or not if (config_["use-icon"].isBool()) { useIcon = config_["use-icon"].asBool(); } diff --git a/src/modules/sway/workspaces.cpp b/src/modules/sway/workspaces.cpp index 08742ae..2bf0247 100644 --- a/src/modules/sway/workspaces.cpp +++ b/src/modules/sway/workspaces.cpp @@ -156,7 +156,7 @@ void Workspaces::onCmd(const struct Ipc::ipc_response &res) { if (l == r || config_["alphabetical_sort"].asBool()) { // In case both integers are the same, lexicographical // sort. The code above already ensure that this will only - // happend in case of explicitly numbered workspaces. + // happened in case of explicitly numbered workspaces. // // Additionally, if the config specifies to sort workspaces // alphabetically do this here. diff --git a/src/util/sanitize_str.cpp b/src/util/sanitize_str.cpp index 72c72f8..131b9f2 100644 --- a/src/util/sanitize_str.cpp +++ b/src/util/sanitize_str.cpp @@ -6,7 +6,7 @@ namespace waybar::util { // replaces ``<>&"'`` with their encoded counterparts std::string sanitize_string(std::string str) { - // note: it's important that '&' is replaced first; therefor we *can't* use std::map + // note: it's important that '&' is replaced first; therefore we *can't* use std::map const std::pair replacement_table[] = { {'&', "&"}, {'<', "<"}, {'>', ">"}, {'"', """}, {'\'', "'"}}; size_t startpoint;