Don't search for string in map, if it's known there's nothing there.

This commit is contained in:
Bartosz Taudul 2017-11-14 23:37:20 +01:00 committed by Bartosz Taudul
parent 8b2af369ad
commit 7da59a55cc

View File

@ -1387,12 +1387,20 @@ const char* View::GetString( const StringRef& ref ) const
{
if( ref.isidx )
{
assert( ref.active );
return m_stringData[ref.stridx];
}
else
{
if( ref.active )
{
return GetString( ref.strptr );
}
else
{
return "???";
}
}
}
const char* View::GetThreadString( uint64_t id ) const