Codechange: Use std::swap() instead of Swap() (#13883)
This commit is contained in:
@@ -28,8 +28,8 @@ OrthogonalTileArea::OrthogonalTileArea(TileIndex start, TileIndex end)
|
||||
uint ex = TileX(end);
|
||||
uint ey = TileY(end);
|
||||
|
||||
if (sx > ex) Swap(sx, ex);
|
||||
if (sy > ey) Swap(sy, ey);
|
||||
if (sx > ex) std::swap(sx, ex);
|
||||
if (sy > ey) std::swap(sy, ey);
|
||||
|
||||
this->tile = TileXY(sx, sy);
|
||||
this->w = ex - sx + 1;
|
||||
|
||||
Reference in New Issue
Block a user