summaryrefslogtreecommitdiff
path: root/src/newgrf_config.cpp
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-25 21:01:56 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commitaa7ca7fe64af51c2cd2400e3dec477dfbddadae3 (patch)
tree2b80f868a6e3e9df699f3b96bffb41b7b6f84125 /src/newgrf_config.cpp
parentbc7dcaffca553b227fe895dc185e657d110c5ffe (diff)
downloadopenttd-aa7ca7fe64af51c2cd2400e3dec477dfbddadae3.tar.xz
Codechange: Replaced SmallVector::Get(n) non-const with std::vector::data() + n
Diffstat (limited to 'src/newgrf_config.cpp')
-rw-r--r--src/newgrf_config.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp
index fa84c947a..730207c6b 100644
--- a/src/newgrf_config.cpp
+++ b/src/newgrf_config.cpp
@@ -262,7 +262,7 @@ GRFParameterInfo::GRFParameterInfo(GRFParameterInfo &info) :
complete_labels(info.complete_labels)
{
for (uint i = 0; i < info.value_names.size(); i++) {
- SmallPair<uint32, GRFText *> *data = info.value_names.Get(i);
+ SmallPair<uint32, GRFText *> *data = info.value_names.data() + i;
this->value_names.Insert(data->first, DuplicateGRFText(data->second));
}
}
@@ -273,7 +273,7 @@ GRFParameterInfo::~GRFParameterInfo()
CleanUpGRFText(this->name);
CleanUpGRFText(this->desc);
for (uint i = 0; i < this->value_names.size(); i++) {
- SmallPair<uint32, GRFText *> *data = this->value_names.Get(i);
+ SmallPair<uint32, GRFText *> *data = this->value_names.data() + i;
CleanUpGRFText(data->second);
}
}