mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
No need for lambda in sort.
This commit is contained in:
parent
91758423cd
commit
b82434d7c3
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user