From b82434d7c38a53d77f17f3fc4b199aa0d8c65ba7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 26 Nov 2017 17:13:24 +0100 Subject: [PATCH] No need for lambda in sort. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 7669f35e..e15e06f5 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3307,7 +3307,7 @@ int View::DrawPlots( int offset, double pxns, const ImVec2& wpos, bool hover ) break; } } - std::sort( tmpvec, dst, [] ( const auto& l, const auto& r ) { return l < r; } ); + std::sort( tmpvec, dst ); draw->AddLine( wpos + ImVec2( x1, offset + PlotHeight - ( tmpvec[0] - min ) * revrange * PlotHeight ), wpos + ImVec2( x1, offset + PlotHeight - ( dst[-1] - min ) * revrange * PlotHeight ), 0xFF44DDDD );