summaryrefslogtreecommitdiff
path: root/src/newgrf_text.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-05-17 23:31:44 +0200
committerMichael Lutz <michi@icosahedron.de>2020-05-21 20:02:34 +0200
commitf2b40f40aa7cbccaed20ec52b41d4704a45d8db1 (patch)
tree2f8268a7292118c9e460524a139ab85766ed3425 /src/newgrf_text.cpp
parent7309bdec48c70499301eb579991c2db6f7ef1d99 (diff)
downloadopenttd-f2b40f40aa7cbccaed20ec52b41d4704a45d8db1.tar.xz
Codechange: Replace SmallPair with std::pair.
std::pair is already the smallest possible pair, and it already handles non-POD types correctly.
Diffstat (limited to 'src/newgrf_text.cpp')
-rw-r--r--src/newgrf_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp
index c08877198..134511944 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -196,7 +196,7 @@ struct UnmappedChoiceList : ZeroedMemoryAllocator {
/** Clean everything up. */
~UnmappedChoiceList()
{
- for (SmallPair<byte, char *> p : this->strings) {
+ for (std::pair<byte, char *> p : this->strings) {
free(p.second);
}
}