SymbolDB: Normalize variable names

Normalizes variable naming so that it adheres to our coding style

While we're at it do minor cleanup relating to modified lines
This commit is contained in:
Lioncash
2018-05-27 17:15:20 -04:00
parent 512c6fee51
commit e9b9797a86
6 changed files with 65 additions and 69 deletions

View File

@ -61,20 +61,17 @@ const char* GetLineText(int line)
Symbol* DSPSymbolDB::GetSymbolFromAddr(u32 addr)
{
XFuncMap::iterator it = functions.find(addr);
auto it = m_functions.find(addr);
if (it != functions.end())
{
if (it != m_functions.end())
return &it->second;
}
else
for (auto& func : m_functions)
{
for (auto& func : functions)
{
if (addr >= func.second.address && addr < func.second.address + func.second.size)
return &func.second;
}
if (addr >= func.second.address && addr < func.second.address + func.second.size)
return &func.second;
}
return nullptr;
}