mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 17:05:37 +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
|
// Update string name
|
||||||
const size_t MinIndex = std::min(StringIndex, NewIndex);
|
const auto [MinIndex, MaxIndex] = std::minmax(StringIndex, NewIndex);
|
||||||
const size_t MaxIndex = std::max(StringIndex, NewIndex);
|
|
||||||
|
|
||||||
if (MinIndex < mStringNames.size())
|
if (MinIndex < mStringNames.size())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user