[new downloader] Reserving place in country tree vectors in case of two components country tree.

This commit is contained in:
Vladimir Byko-Ianko 2016-02-17 10:06:57 +03:00 committed by Sergey Yershov
parent 3779cb2ddb
commit f78327d8a3

View file

@ -77,6 +77,7 @@ void LoadGroupTwoComponentMwmsImpl(int depth, json_t * group, TCountryId const &
// @TODO(bykoianko) After we stop supporting two component mwms (with routing files)
// remove code below.
size_t const groupListSize = json_array_size(group);
toDo.ReserveAtDepth(depth, groupListSize);
for (size_t i = 0; i < groupListSize; ++i)
{
json_t * j = json_array_get(group, i);