mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 06:05:40 +12:00
Merge pull request #293 from wheremyfoodat/res
Result: Initialize m_value to 0 in default HorizonResult constructor
This commit is contained in:
commit
49368e0db6
1 changed files with 1 additions and 1 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue