IsFrameExternal() can be const.

This commit is contained in:
Bartosz Taudul
2025-12-12 01:23:19 +01:00
parent 49ab593247
commit 4fe1e00696
2 changed files with 2 additions and 2 deletions

View File

@@ -331,7 +331,7 @@ private:
void AddAnnotation( int64_t start, int64_t end );
bool IsFrameExternal( const char* filename, const char* image );
bool IsFrameExternal( const char* filename, const char* image ) const;
uint32_t GetThreadColor( uint64_t thread, int depth );
uint32_t GetSrcLocColor( const SourceLocation& srcloc, int depth );
uint32_t GetRawSrcLocColor( const SourceLocation& srcloc, int depth );

View File

@@ -8,7 +8,7 @@
namespace tracy
{
bool View::IsFrameExternal( const char* filename, const char* image )
bool View::IsFrameExternal( const char* filename, const char* image ) const
{
if( strncmp( filename, "/usr/", 5 ) == 0 || strncmp( filename, "/lib/", 5 ) == 0 || strcmp( filename, "[unknown]" ) == 0 || strcmp( filename, "<kernel>" ) == 0 ) return true;
if( strncmp( filename, "C:\\Program Files\\", 17 ) == 0 || strncmp( filename, "d:\\a01\\_work\\", 13 ) == 0 ) return true;