mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Don't search for string in map, if it's known there's nothing there.
This commit is contained in:
parent
8b2af369ad
commit
7da59a55cc
@ -1387,11 +1387,19 @@ const char* View::GetString( const StringRef& ref ) const
|
|||||||
{
|
{
|
||||||
if( ref.isidx )
|
if( ref.isidx )
|
||||||
{
|
{
|
||||||
|
assert( ref.active );
|
||||||
return m_stringData[ref.stridx];
|
return m_stringData[ref.stridx];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return GetString( ref.strptr );
|
if( ref.active )
|
||||||
|
{
|
||||||
|
return GetString( ref.strptr );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "???";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user