Simplify sorting arrays code

This commit is contained in:
Wojtek Figat
2023-12-01 13:57:34 +01:00
parent a808bcdbf6
commit c8dd2c045c
8 changed files with 21 additions and 11 deletions

View File

@@ -58,7 +58,7 @@ bool Log::Logger::Init()
int32 remaining = oldLogs.Count() - maxLogFiles + 1;
if (remaining > 0)
{
Sorting::QuickSort(oldLogs.Get(), oldLogs.Count());
Sorting::QuickSort(oldLogs);
// Delete the oldest logs
int32 i = 0;