From fb876344e3539aab41b93b03d9edf53c77486e26 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 18 Aug 2018 14:14:33 +0200 Subject: [PATCH] No need for indentVal outside of scope. --- server/TracyView.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index fa5a0e3e..63ef9cb9 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6747,11 +6747,10 @@ void View::DrawFrameTreeLevel( std::vector& tree, int& idx ) ImGui::EndTooltip(); } - float indentVal = 0.f; if( m_callstackTreeBuzzAnim.Match( idx ) ) { const auto time = m_callstackTreeBuzzAnim.Time(); - indentVal = sin( time * 60.f ) * 10.f * time; + const auto indentVal = sin( time * 60.f ) * 10.f * time; ImGui::SameLine( 0, ImGui::GetStyle().ItemSpacing.x + indentVal ); } else