Skip to content

Commit

Permalink
Merge pull request #293 from wheremyfoodat/res
Browse files Browse the repository at this point in the history
Result: Initialize m_value to 0 in default HorizonResult constructor
  • Loading branch information
wheremyfoodat authored Sep 27, 2023
2 parents 929a20b + 7883e1f commit 49368e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/result/result_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint32_t>(module), static_cast<uint32_t>(summary), static_cast<uint32_t>(level))) {}
constexpr operator uint32_t() const { return m_value; }
Expand Down

0 comments on commit 49368e0

Please sign in to comment.