From 4fe1e006961942b0a111d2ca1af3a431cbfb266a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 12 Dec 2025 01:23:19 +0100 Subject: [PATCH] IsFrameExternal() can be const. --- profiler/src/profiler/TracyView.hpp | 2 +- profiler/src/profiler/TracyView_Utility.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/profiler/src/profiler/TracyView.hpp b/profiler/src/profiler/TracyView.hpp index c76e8302..969347e4 100644 --- a/profiler/src/profiler/TracyView.hpp +++ b/profiler/src/profiler/TracyView.hpp @@ -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 ); diff --git a/profiler/src/profiler/TracyView_Utility.cpp b/profiler/src/profiler/TracyView_Utility.cpp index cc08264a..720b0dce 100644 --- a/profiler/src/profiler/TracyView_Utility.cpp +++ b/profiler/src/profiler/TracyView_Utility.cpp @@ -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, "" ) == 0 ) return true; if( strncmp( filename, "C:\\Program Files\\", 17 ) == 0 || strncmp( filename, "d:\\a01\\_work\\", 13 ) == 0 ) return true;