From 7883e1fdca17df395a23916da12a0b14b7912b98 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Wed, 27 Sep 2023 16:13:01 +0300 Subject: [PATCH] Result: Initialize m_value to 0 in default HorizonResult constructor --- include/result/result_common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/result/result_common.hpp b/include/result/result_common.hpp index 6a7d9bdbc..ffa5e2bf3 100644 --- a/include/result/result_common.hpp +++ b/include/result/result_common.hpp @@ -157,7 +157,7 @@ namespace Result { } public: - constexpr HorizonResult() {} + constexpr HorizonResult() : m_value(0) {} constexpr HorizonResult(uint32_t value) : m_value(value) {} constexpr HorizonResult(uint32_t description, HorizonResultModule module, HorizonResultSummary summary, HorizonResultLevel level) : m_value(makeValue(description, static_cast(module), static_cast(summary), static_cast(level))) {} constexpr operator uint32_t() const { return m_value; }