summaryrefslogtreecommitdiff
path: root/update.cpp
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2018-01-14 03:42:04 -0500
committerBrian Potchik <brian@vector35.com>2018-01-14 03:42:04 -0500
commit0cc77206c79257d49013c3a3ed1bf889c85b10d1 (patch)
tree7c5ddd2f6e7d4c84e622064c74ca25873f82b97b /update.cpp
parent4866de9b9f0ef32dfa568aa38faafdfd4def4638 (diff)
Container Memory Reservations.
Diffstat (limited to 'update.cpp')
-rw-r--r--update.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/update.cpp b/update.cpp
index 0ec69892..ecdf4162 100644
--- a/update.cpp
+++ b/update.cpp
@@ -53,6 +53,7 @@ vector<UpdateChannel> UpdateChannel::GetList()
}
vector<UpdateChannel> result;
+ result.reserve(count);
for (size_t i = 0; i < count; i++)
{
UpdateChannel channel;
@@ -149,6 +150,7 @@ vector<UpdateVersion> UpdateVersion::GetChannelVersions(const string& channel)
}
vector<UpdateVersion> result;
+ result.reserve(count);
for (size_t i = 0; i < count; i++)
{
UpdateVersion version;