Skip to content

Commit 66ca6c0

Browse files
committed
Use Point and Vector string conversion operators in TileInspector
1 parent 1496155 commit 66ca6c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appOPHD/UI/TileInspector.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void TileInspector::update()
6363

6464
position = mRect.position + NAS2D::Vector{5, 62};
6565
const auto tilePosition = mTile->xy();
66-
drawLabelAndValue(position, "Location: ", std::to_string(tilePosition.x) + ", " + std::to_string(tilePosition.y));
66+
drawLabelAndValue(position, "Location: ", std::string{tilePosition});
6767

6868
position.y += 10;
6969
drawLabelAndValue(position, "Terrain: ", terrainTypeStringTable.at(mTile->index()));

0 commit comments

Comments
 (0)