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 /lineformatter.cpp | |
| parent | 3967000448807875468673398445854536525610 (diff) | |
Add more reserve calls
Diffstat (limited to 'lineformatter.cpp')
| -rw-r--r-- | lineformatter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lineformatter.cpp b/lineformatter.cpp index 44eac0b3..4a66196c 100644 --- a/lineformatter.cpp +++ b/lineformatter.cpp @@ -126,6 +126,7 @@ vector<Ref<LineFormatter>> LineFormatter::GetList() size_t count; BNLineFormatter** list = BNGetLineFormatterList(&count); vector<Ref<LineFormatter>> result; + result.reserve(count); for (size_t i = 0; i < count; i++) result.push_back(new CoreLineFormatter(list[i])); BNFreeLineFormatterList(list); |
