summaryrefslogtreecommitdiff
path: root/Userland/Utilities/cut.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-04-01 20:58:27 +0300
committerLinus Groh <mail@linusgroh.de>2022-04-01 21:24:45 +0100
commit086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch)
tree02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Utilities/cut.cpp
parent0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff)
downloadserenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Utilities/cut.cpp')
-rw-r--r--Userland/Utilities/cut.cpp8
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;