Fix -Wmaybe-uninitialized warnings

This commit is contained in:
Léo Lam 2020-11-21 01:47:45 +01:00
parent 82f1e6204d
commit 6ab1ab1f12
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ namespace Gecko
class GeckoCode class GeckoCode
{ {
public: public:
GeckoCode() : enabled(false) {} GeckoCode() = default;
struct Code struct Code
{ {
u32 address = 0; u32 address = 0;
@ -28,8 +28,8 @@ public:
std::string name, creator; std::string name, creator;
std::vector<std::string> notes; std::vector<std::string> notes;
bool enabled; bool enabled = false;
bool user_defined; bool user_defined = false;
bool Exist(u32 address, u32 data) const; bool Exist(u32 address, u32 data) const;
}; };