From f8d76c9beaa6a87ae3ec9762912f709d600f5198 Mon Sep 17 00:00:00 2001 From: apio Date: Tue, 1 Nov 2022 22:28:34 +0100 Subject: [PATCH] Result: Reorder constructors --- src/Result.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Result.h b/src/Result.h index 8717f7f..85a2f18 100644 --- a/src/Result.h +++ b/src/Result.h @@ -35,10 +35,10 @@ template class Result bool m_is_error; std::string m_error; - Result(T* result, Token* token) : m_result(result), m_token(token), m_is_error(false) + Result(T* result, Token* token) : m_token(token), m_result(result), m_is_error(false) { } - Result(std::string&& error, Token* token) : m_error(error), m_token(token), m_is_error(true) + Result(std::string&& error, Token* token) : m_token(token), m_is_error(true), m_error(error) { } };