mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Common/SymbolDB: Use std::string_view where applicable
These strings are only used for comparison against other strings, so a string view can be used here.
This commit is contained in:
@ -63,7 +63,7 @@ void SymbolDB::Index()
|
||||
}
|
||||
}
|
||||
|
||||
Symbol* SymbolDB::GetSymbolFromName(const std::string& name)
|
||||
Symbol* SymbolDB::GetSymbolFromName(std::string_view name)
|
||||
{
|
||||
for (auto& func : m_functions)
|
||||
{
|
||||
@ -74,7 +74,7 @@ Symbol* SymbolDB::GetSymbolFromName(const std::string& name)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::vector<Symbol*> SymbolDB::GetSymbolsFromName(const std::string& name)
|
||||
std::vector<Symbol*> SymbolDB::GetSymbolsFromName(std::string_view name)
|
||||
{
|
||||
std::vector<Symbol*> symbols;
|
||||
|
||||
|
Reference in New Issue
Block a user