aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_autocomplete.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/commands_autocomplete.cpp')
-rw-r--r--toolsrc/src/commands_autocomplete.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/toolsrc/src/commands_autocomplete.cpp b/toolsrc/src/commands_autocomplete.cpp
index 478a3c478..6ded74f9b 100644
--- a/toolsrc/src/commands_autocomplete.cpp
+++ b/toolsrc/src/commands_autocomplete.cpp
@@ -13,13 +13,12 @@ namespace vcpkg::Commands::Autocomplete
const std::vector<std::unique_ptr<SourceControlFile>>& source_paragraphs, const std::string& start_with)
{
std::vector<std::string> results;
- const auto& istartswith = Strings::case_insensitive_ascii_starts_with;
for (const auto& source_control_file : source_paragraphs)
{
auto&& sp = *source_control_file->core_paragraph;
- if (istartswith(sp.name, start_with))
+ if (Strings::case_insensitive_ascii_starts_with(sp.name, start_with))
{
results.push_back(sp.name);
}
@@ -31,13 +30,12 @@ namespace vcpkg::Commands::Autocomplete
const std::string& start_with)
{
std::vector<std::string> results;
- const auto& istartswith = Strings::case_insensitive_ascii_starts_with;
for (const auto& installed_package : installed_packages)
{
const auto sp = installed_package->package.displayname();
- if (istartswith(sp, start_with))
+ if (Strings::case_insensitive_ascii_starts_with(sp, start_with))
{
results.push_back(sp);
}