Skip to content

Commit 033d365

Browse files
committed
fuzzy: fix fuzzable vector size
1 parent b09525e commit 033d365

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/finders/Fuzzy.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ std::vector<SP<IFinderResult>> Fuzzy::getNResults(const std::vector<SP<IFinderRe
272272
}
273273

274274
std::vector<std::string> Fuzzy::createFuzzableStrings(std::initializer_list<std::string_view> strings, bool toLowercase) {
275-
std::vector<std::string> fuzzables{strings.size()};
275+
std::vector<std::string> fuzzables{};
276+
fuzzables.reserve(strings.size());
276277

277278
for (auto&& sv : strings) {
278279
std::string fuzzable;

0 commit comments

Comments
 (0)