mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Remove const qualifier from shortened function names.
This commit is contained in:
parent
60f82dfd2e
commit
fb6f63f06f
@ -883,7 +883,14 @@ const char* View::ShortenZoneName( const char* name, ImVec2& tsz, float zsz ) co
|
||||
*dst++ = ')';
|
||||
}
|
||||
|
||||
tsz = ImGui::CalcTextSize( buf );
|
||||
end = dst-1;
|
||||
if( end - buf > 6 && memcmp( end-6, " const", 6 ) == 0 )
|
||||
{
|
||||
dst[-7] = '\0';
|
||||
end -= 6;
|
||||
}
|
||||
|
||||
tsz = ImGui::CalcTextSize( buf, end );
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user