From afcaed4eba381557b20807c0444ee1cd0fbaf678 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 16 Jun 2020 00:45:24 -0500 Subject: [PATCH] [ox/std] Change toError(ox::ValErr) to toError(const ox::ValErr&) (synced from e92e980fde9127c46274c86fe5f1f666733a9002) --- src/ox/std/error.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ox/std/error.hpp b/src/ox/std/error.hpp index b6aee015b..36a23dafa 100644 --- a/src/ox/std/error.hpp +++ b/src/ox/std/error.hpp @@ -90,7 +90,7 @@ namespace error { } template -[[nodiscard]] constexpr ox::Error toError(ox::ValErr ve) noexcept { +[[nodiscard]] constexpr ox::Error toError(const ox::ValErr &ve) noexcept { return ve.error; }