1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Don't pass font to SourceView ctor.

This commit is contained in:
Bartosz Taudul 2021-11-20 14:44:22 +01:00
parent 3e78c826cf
commit f0d524ad1f
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
3 changed files with 4 additions and 4 deletions

View File

@ -161,8 +161,8 @@ static void PrintHwSampleTooltip( size_t cycles, size_t retired, size_t cacheRef
enum { JumpSeparation = 6 };
enum { JumpArrowBase = 9 };
SourceView::SourceView( ImFont* font, GetWindowCallback gwcb )
: m_font( font )
SourceView::SourceView( GetWindowCallback gwcb )
: m_font( nullptr )
, m_symAddr( 0 )
, m_targetAddr( 0 )
, m_targetLine( 0 )

View File

@ -142,7 +142,7 @@ private:
public:
using GetWindowCallback = void*(*)();
SourceView( ImFont* font, GetWindowCallback gwcb );
SourceView( GetWindowCallback gwcb );
void UpdateFont( ImFont* font ) { m_font = font; }
void SetCpuId( uint32_t cpuid );

View File

@ -234,7 +234,7 @@ void View::InitMemory()
void View::InitTextEditor( ImFont* font )
{
m_sourceView = std::make_unique<SourceView>( font, m_gwcb );
m_sourceView = std::make_unique<SourceView>( m_gwcb );
m_sourceViewFile = nullptr;
}