summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command_divesite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/command_divesite.cpp')
-rw-r--r--desktop-widgets/command_divesite.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/command_divesite.cpp b/desktop-widgets/command_divesite.cpp
index eb03ed4d5..8c31959eb 100644
--- a/desktop-widgets/command_divesite.cpp
+++ b/desktop-widgets/command_divesite.cpp
@@ -190,6 +190,7 @@ static void swap(char *&c, QString &q)
static QVector<dive *> getDivesForSite(struct dive_site *ds)
{
QVector<dive *> diveSiteDives;
+ diveSiteDives.reserve(ds->dives.nr);
for (int i = 0; i < ds->dives.nr; ++i)
diveSiteDives.push_back(ds->dives.dives[i]);