mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 08:57:09 +00:00
CStringTable: Make use of minmax() over individual min/max
Same thing less code.
This commit is contained in:
@@ -164,8 +164,7 @@ void CStringTable::MoveString(size_t StringIndex, size_t NewIndex)
|
||||
}
|
||||
|
||||
// Update string name
|
||||
const size_t MinIndex = std::min(StringIndex, NewIndex);
|
||||
const size_t MaxIndex = std::max(StringIndex, NewIndex);
|
||||
const auto [MinIndex, MaxIndex] = std::minmax(StringIndex, NewIndex);
|
||||
|
||||
if (MinIndex < mStringNames.size())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user