SymbolDB: In-class initialize Symbol class variables

This commit is contained in:
Lioncash 2016-09-13 20:47:00 -04:00
parent 54a643a4a3
commit d8d127df25
1 changed files with 8 additions and 12 deletions

View File

@ -29,21 +29,17 @@ struct Symbol
SYMBOL_DATA = 1,
};
Symbol() : hash(0), address(0), flags(0), size(0), numCalls(0), type(SYMBOL_FUNCTION), analyzed(0)
{
}
std::string name;
std::vector<SCall> callers; // addresses of functions that call this function
std::vector<SCall> calls; // addresses of functions that are called by this function
u32 hash; // use for HLE function finding
u32 address;
u32 flags;
int size;
int numCalls;
int type;
int index; // only used for coloring the disasm view
int analyzed;
u32 hash = 0; // use for HLE function finding
u32 address = 0;
u32 flags = 0;
int size = 0;
int numCalls = 0;
int type = SYMBOL_FUNCTION;
int index = 0; // only used for coloring the disasm view
int analyzed = 0;
};
enum