From 1dd675a785ddce82b2ff4b164ed10f8b9789a5c7 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Tue, 21 Feb 2017 17:32:53 -0800 Subject: [PATCH] Use std::vector.empty() instead of checking for size() = 0 --- toolsrc/src/commands_search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolsrc/src/commands_search.cpp b/toolsrc/src/commands_search.cpp index 824c426ced..56485ac02a 100644 --- a/toolsrc/src/commands_search.cpp +++ b/toolsrc/src/commands_search.cpp @@ -91,7 +91,7 @@ namespace vcpkg::Commands::Search exit(EXIT_SUCCESS); } - if (args.command_arguments.size() == 0) + if (args.command_arguments.empty()) { for (const SourceParagraph& source_paragraph : source_paragraphs) {