summaryrefslogtreecommitdiff
path: root/src/network/network_content.h
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2019-02-17 11:20:52 +0000
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commitab711e6942757d775c08c31a6c32d488feba1dba (patch)
treed102dc6d0e6b9c33e7205b63e3360ebd720a3ebb /src/network/network_content.h
parent297fd3dda3abe353ebe2fe77c67b011e24d403bc (diff)
downloadopenttd-ab711e6942757d775c08c31a6c32d488feba1dba.tar.xz
Codechange: Replaced SmallVector::[Begin|End]() with std alternatives
Diffstat (limited to 'src/network/network_content.h')
-rw-r--r--src/network/network_content.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_content.h b/src/network/network_content.h
index 08e7755aa..26300c4ca 100644
--- a/src/network/network_content.h
+++ b/src/network/network_content.h
@@ -131,11 +131,11 @@ public:
/** Get the number of content items we know locally. */
uint Length() const { return this->infos.size(); }
/** Get the begin of the content inf iterator. */
- ConstContentIterator Begin() const { return this->infos.Begin(); }
+ ConstContentIterator Begin() const { return this->infos.data(); }
/** Get the nth position of the content inf iterator. */
ConstContentIterator Get(uint32 index) const { return this->infos.data() + index; }
/** Get the end of the content inf iterator. */
- ConstContentIterator End() const { return this->infos.End(); }
+ ConstContentIterator End() const { return this->Begin() + this->Length(); }
void Clear();