diff --git a/include/components/bar.hpp b/include/components/bar.hpp index 63d8d472..9e24f222 100644 --- a/include/components/bar.hpp +++ b/include/components/bar.hpp @@ -82,7 +82,7 @@ class bar : public xpp::event::sink action_close(mousebtn btn, alignment align, double x); - void set_alignmnent_start(const alignment a, const double x); + void set_alignment_start(const alignment a, const double x); std::map get_actions(int x) const; action_t has_action(mousebtn btn, int x) const; diff --git a/src/adapters/alsa/control.cpp b/src/adapters/alsa/control.cpp index 3d7d3a48..4bbfe270 100644 --- a/src/adapters/alsa/control.cpp +++ b/src/adapters/alsa/control.cpp @@ -36,7 +36,7 @@ namespace alsa { snd_ctl_elem_info_set_id(m_info, m_id); if ((err = snd_ctl_elem_info(m_ctl, m_info)) == -1) { - throw_exception("Could not get control datal", err); + throw_exception("Could not get control data", err); } snd_ctl_elem_info_get_id(m_info, m_id); diff --git a/src/adapters/net_iw.cpp b/src/adapters/net_iw.cpp index 49c46f90..b9460c04 100644 --- a/src/adapters/net_iw.cpp +++ b/src/adapters/net_iw.cpp @@ -112,13 +112,13 @@ namespace net { return; } - // Check if the link quality has been uodated + // Check if the link quality has been updated if (stats.qual.updated & IW_QUAL_QUAL_UPDATED) { m_linkquality.val = stats.qual.qual; m_linkquality.max = range.max_qual.qual; } - // Check if the signal strength has been uodated + // Check if the signal strength has been updated if (stats.qual.updated & IW_QUAL_LEVEL_UPDATED) { m_signalstrength.val = stats.qual.level; m_signalstrength.max = range.max_qual.level; diff --git a/src/components/bar.cpp b/src/components/bar.cpp index 7a95f668..dce6ac18 100644 --- a/src/components/bar.cpp +++ b/src/components/bar.cpp @@ -413,7 +413,7 @@ void bar::show() { * First reconfigures the window so that WMs that discard some information * when unmapping have the correct window properties (geometry etc). */ - reconfigue_window(); + reconfigure_window(); m_connection.map_window_checked(m_opts.window); m_connection.flush(); m_visible = true; @@ -482,7 +482,7 @@ void bar::restack_window() { } } -void bar::reconfigue_window() { +void bar::reconfigure_window() { m_log.trace("bar: Reconfigure window"); restack_window(); reconfigure_geom(); @@ -820,7 +820,7 @@ void bar::start() { m_connection.ensure_event_mask(m_opts.window, XCB_EVENT_MASK_STRUCTURE_NOTIFY); m_log.info("Bar window: %s", m_connection.id(m_opts.window)); - reconfigue_window(); + reconfigure_window(); m_log.trace("bar: Map window"); m_connection.map_window_checked(m_opts.window); diff --git a/src/components/renderer.cpp b/src/components/renderer.cpp index c79e5e74..94436619 100644 --- a/src/components/renderer.cpp +++ b/src/components/renderer.cpp @@ -134,7 +134,7 @@ renderer::renderer(connection& conn, signal_emitter& sig, const config& conf, co } } - // dpi to be comptued + // dpi to be computed if (dpi_x <= 0 || dpi_y <= 0) { auto screen = m_connection.screen(); if (dpi_x <= 0) { diff --git a/src/tags/action_context.cpp b/src/tags/action_context.cpp index 78e70543..d6993080 100644 --- a/src/tags/action_context.cpp +++ b/src/tags/action_context.cpp @@ -40,7 +40,7 @@ namespace tags { m_action_blocks[id].end_x = x; } - void action_context::set_alignmnent_start(const alignment a, const double x) { + void action_context::set_alignment_start(const alignment a, const double x) { m_align_start[a] = x; } diff --git a/src/tags/dispatch.cpp b/src/tags/dispatch.cpp index 278d6838..5a12bd8f 100644 --- a/src/tags/dispatch.cpp +++ b/src/tags/dispatch.cpp @@ -104,7 +104,7 @@ namespace tags { * of the alignment blocks so that it can do intersection tests. */ for (auto a : {alignment::LEFT, alignment::CENTER, alignment::RIGHT}) { - m_action_ctxt.set_alignmnent_start(a, renderer.get_alignment_start(a)); + m_action_ctxt.set_alignment_start(a, renderer.get_alignment_start(a)); } auto num_unclosed = m_action_ctxt.num_unclosed(); diff --git a/src/utils/command.cpp b/src/utils/command.cpp index 2f6d9d43..f9427f78 100644 --- a/src/utils/command.cpp +++ b/src/utils/command.cpp @@ -59,7 +59,7 @@ bool command::is_running() { } /** - * Wait for the child processs to finish + * Wait for the child process to finish */ int command::wait() { do { diff --git a/src/utils/string.cpp b/src/utils/string.cpp index 9ff1be19..3703f954 100644 --- a/src/utils/string.cpp +++ b/src/utils/string.cpp @@ -45,7 +45,7 @@ namespace string_util { } /** - * Replace first occurence of needle in haystack + * Replace first occurrence of needle in haystack */ string replace(const string& haystack, const string& needle, const string& replacement, size_t start, size_t end) { string str(haystack); @@ -61,7 +61,7 @@ namespace string_util { } /** - * Replace all occurences of needle in haystack + * Replace all occurrences of needle in haystack */ string replace_all( const string& haystack, const string& needle, const string& replacement, size_t start, size_t end) {