From b81d1910dbd731326ce2d31db134820c14acdc76 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Mon, 7 Nov 2016 14:42:25 -0800 Subject: [vcpkg search] Use System::println() instead of iostream + iomanip --- toolsrc/src/commands_search.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'toolsrc/src') diff --git a/toolsrc/src/commands_search.cpp b/toolsrc/src/commands_search.cpp index 267f9a3d4..d59a338ac 100644 --- a/toolsrc/src/commands_search.cpp +++ b/toolsrc/src/commands_search.cpp @@ -1,8 +1,6 @@ #include "vcpkg_Commands.h" #include "vcpkg_System.h" #include "vcpkg.h" -#include -#include namespace fs = std::tr2::sys; @@ -36,10 +34,10 @@ namespace vcpkg static void do_print(const SourceParagraph& source_paragraph) { - std::cout << std::left - << std::setw(20) << source_paragraph.name << ' ' - << std::setw(16) << source_paragraph.version << ' ' - << shorten_description(source_paragraph.description) << '\n'; + System::println("%-20s %-16s %s", + source_paragraph.name, + source_paragraph.version, + shorten_description(source_paragraph.description)); } void search_command(const vcpkg_cmd_arguments& args, const vcpkg_paths& paths) -- cgit v1.2.3