diff options
| author | Scott Lagler <laglerscott@gmail.com> | 2025-12-12 19:20:21 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2025-12-16 17:45:24 -0500 |
| commit | 6138978808829172448615980742756831959788 (patch) | |
| tree | 746bb0a634c139967c1755dcbcfb8c3395b97ff5 /downloadprovider.cpp | |
| parent | 3967000448807875468673398445854536525610 (diff) | |
Add more reserve calls
Diffstat (limited to 'downloadprovider.cpp')
| -rw-r--r-- | downloadprovider.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/downloadprovider.cpp b/downloadprovider.cpp index 271e0cbf..4d5b704f 100644 --- a/downloadprovider.cpp +++ b/downloadprovider.cpp @@ -230,6 +230,7 @@ vector<Ref<DownloadProvider>> DownloadProvider::GetList() size_t count; BNDownloadProvider** list = BNGetDownloadProviderList(&count); vector<Ref<DownloadProvider>> result; + result.reserve(count); for (size_t i = 0; i < count; i++) result.push_back(new CoreDownloadProvider(list[i])); BNFreeDownloadProviderList(list); |
