Remove const qualifier from shortened function names.

This commit is contained in:
Bartosz Taudul 2022-08-15 15:22:57 +02:00
parent 60f82dfd2e
commit fb6f63f06f
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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;
}