summaryrefslogtreecommitdiff
path: root/backgroundtask.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2018-02-12 21:48:34 -0500
committerRusty Wagner <rusty@vector35.com>2018-02-12 21:48:34 -0500
commitbba715aff1565426fba31e2f39c438f37921c303 (patch)
tree9f1a0fd2b15d5d8bcc5d02a90449f0a7a3d6abc3 /backgroundtask.cpp
parent79b5bdcf42f6abf1c8b2c4bda4c30b41319c4aa5 (diff)
parentc352fec480dde5321a0c52850be1bb8a3df9bbd3 (diff)
Merge branch 'dev' into fpu
Diffstat (limited to 'backgroundtask.cpp')
-rw-r--r--backgroundtask.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/backgroundtask.cpp b/backgroundtask.cpp
index aebf980c..b2d4a738 100644
--- a/backgroundtask.cpp
+++ b/backgroundtask.cpp
@@ -67,6 +67,7 @@ vector<Ref<BackgroundTask>> BackgroundTask::GetRunningTasks()
BNBackgroundTask** tasks = BNGetRunningBackgroundTasks(&count);
vector<Ref<BackgroundTask>> result;
+ result.reserve(count);
for (size_t i = 0; i < count; i++)
result.push_back(new BackgroundTask(BNNewBackgroundTaskReference(tasks[i])));