From 31b3fcd1fe07a4dbeb587f6a3f73cb60d295775c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 16 Apr 2023 17:21:03 +0200 Subject: [PATCH] View::InitTextEditor() doesn't need font parameter. --- server/TracyView.cpp | 6 +++--- server/TracyView.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 7deb272d..e93b94a3 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -65,7 +65,7 @@ View::View( void(*cbMainThread)(const std::function&, bool), const char* , m_cbMainThread( cbMainThread ) { InitMemory(); - InitTextEditor( fixedWidth ); + InitTextEditor(); } View::View( void(*cbMainThread)(const std::function&, bool), FileRead& f, ImFont* fixedWidth, ImFont* smallFont, ImFont* bigFont, SetTitleCallback stcb, SetScaleCallback sscb, AttentionCallback acb ) @@ -89,7 +89,7 @@ View::View( void(*cbMainThread)(const std::function&, bool), FileRead& f m_notificationText = std::string( "Trace loaded in " ) + TimeToString( m_worker.GetLoadTime() ); InitMemory(); - InitTextEditor( fixedWidth ); + InitTextEditor(); m_vd.zvStart = m_worker.GetFirstTime(); m_vd.zvEnd = m_worker.GetLastTime(); m_userData.StateShouldBePreserved(); @@ -142,7 +142,7 @@ void View::InitMemory() #endif } -void View::InitTextEditor( ImFont* font ) +void View::InitTextEditor() { m_sourceView = std::make_unique(); m_sourceViewFile = nullptr; diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 1eeb22be..d27927fa 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -212,7 +212,7 @@ private: }; void InitMemory(); - void InitTextEditor( ImFont* font ); + void InitTextEditor(); bool DrawImpl(); void DrawNotificationArea();