summaryrefslogtreecommitdiff
path: root/src/linkgraph
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-23 16:43:00 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commitbad2c2154b97613bd6a045cfe1f05cff876da1e4 (patch)
tree2c3281a3c95ca1601966780e42847f3225830a5d /src/linkgraph
parenta690936ed75e96627be0e2ecafee2360a71e8d3c (diff)
downloadopenttd-bad2c2154b97613bd6a045cfe1f05cff876da1e4.tar.xz
Codechange: Replaced SmallVector::Resize() with std::vector::resize()
Diffstat (limited to 'src/linkgraph')
-rw-r--r--src/linkgraph/linkgraph.cpp2
-rw-r--r--src/linkgraph/linkgraphjob.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/linkgraph/linkgraph.cpp b/src/linkgraph/linkgraph.cpp
index 34b3a4aa0..eee7ac61f 100644
--- a/src/linkgraph/linkgraph.cpp
+++ b/src/linkgraph/linkgraph.cpp
@@ -281,7 +281,7 @@ void LinkGraph::Init(uint size)
{
assert(this->Size() == 0);
this->edges.Resize(size, size);
- this->nodes.Resize(size);
+ this->nodes.resize(size);
for (uint i = 0; i < size; ++i) {
this->nodes[i].Init();
diff --git a/src/linkgraph/linkgraphjob.cpp b/src/linkgraph/linkgraphjob.cpp
index 537303cf3..fcc9dce78 100644
--- a/src/linkgraph/linkgraphjob.cpp
+++ b/src/linkgraph/linkgraphjob.cpp
@@ -179,7 +179,7 @@ LinkGraphJob::~LinkGraphJob()
void LinkGraphJob::Init()
{
uint size = this->Size();
- this->nodes.Resize(size);
+ this->nodes.resize(size);
this->edges.Resize(size, size);
for (uint i = 0; i < size; ++i) {
this->nodes[i].Init(this->link_graph[i].Supply());