SymbolDB: Use an enum class for representing symbol type

This commit is contained in:
Lioncash
2016-09-13 21:01:35 -04:00
parent d8d127df25
commit 0ac77b0288
8 changed files with 16 additions and 15 deletions

View File

@ -23,10 +23,10 @@ struct SCall
struct Symbol
{
enum
enum class Type
{
SYMBOL_FUNCTION = 0,
SYMBOL_DATA = 1,
Function,
Data,
};
std::string name;
@ -37,7 +37,7 @@ struct Symbol
u32 flags = 0;
int size = 0;
int numCalls = 0;
int type = SYMBOL_FUNCTION;
Type type = Type::Function;
int index = 0; // only used for coloring the disasm view
int analyzed = 0;
};