diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Utilities/cut.cpp | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Utilities/cut.cpp')
-rw-r--r-- | Userland/Utilities/cut.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Utilities/cut.cpp b/Userland/Utilities/cut.cpp index 792ae3be20..6d19c9b64c 100644 --- a/Userland/Utilities/cut.cpp +++ b/Userland/Utilities/cut.cpp @@ -17,12 +17,12 @@ struct Range { size_t m_from { 1 }; size_t m_to { SIZE_MAX }; - [[nodiscard]] bool intersects(const Range& other) const + [[nodiscard]] bool intersects(Range const& other) const { return !(other.m_from > m_to || other.m_to < m_from); } - void merge(const Range& other) + void merge(Range const& other) { // Can't merge two ranges that are disjoint. VERIFY(intersects(other)); @@ -120,7 +120,7 @@ static bool expand_list(String& list, Vector<Range>& ranges) return true; } -static void process_line_bytes(char* line, size_t length, const Vector<Range>& ranges) +static void process_line_bytes(char* line, size_t length, Vector<Range> const& ranges) { for (auto& i : ranges) { if (i.m_from >= length) @@ -133,7 +133,7 @@ static void process_line_bytes(char* line, size_t length, const Vector<Range>& r outln(); } -static void process_line_fields(char* line, size_t length, const Vector<Range>& ranges, char delimiter) +static void process_line_fields(char* line, size_t length, Vector<Range> const& ranges, char delimiter) { auto string_split = String(line, length).split(delimiter); Vector<String> output_fields; |