summaryrefslogtreecommitdiff
path: root/AK/Result.h
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 /AK/Result.h
parent0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff)
downloadserenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip
Everywhere: Run clang-format
Diffstat (limited to 'AK/Result.h')
-rw-r--r--AK/Result.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/AK/Result.h b/AK/Result.h
index 85c4f90722..c4ff023759 100644
--- a/AK/Result.h
+++ b/AK/Result.h
@@ -17,7 +17,7 @@ public:
using ValueType = ValueT;
using ErrorType = ErrorT;
- Result(const ValueType& res)
+ Result(ValueType const& res)
: m_result(res)
{
}
@@ -27,7 +27,7 @@ public:
{
}
- Result(const ErrorType& error)
+ Result(ErrorType const& error)
: m_error(error)
{
}
@@ -38,7 +38,7 @@ public:
}
Result(Result&& other) = default;
- Result(const Result& other) = default;
+ Result(Result const& other) = default;
~Result() = default;
ValueType& value()
@@ -78,7 +78,7 @@ public:
using ValueType = void;
using ErrorType = ErrorT;
- Result(const ErrorType& error)
+ Result(ErrorType const& error)
: m_error(error)
{
}
@@ -90,7 +90,7 @@ public:
Result() = default;
Result(Result&& other) = default;
- Result(const Result& other) = default;
+ Result(Result const& other) = default;
~Result() = default;
// For compatibility with TRY().