minor changes

This commit is contained in:
Daniel Shaw 2017-06-05 17:55:06 -07:00
parent 6c09b1dd24
commit cc443d1c6b
3 changed files with 2 additions and 4 deletions

View File

@ -32,7 +32,7 @@ namespace vcpkg
static ExpectedT<SourceParagraph, ParseControlErrorInfo> parse_control_file(
std::unordered_map<std::string, std::string> fields);
SourceParagraph();
SourceParagraph() = default;
std::string name;
std::string version;

View File

@ -37,8 +37,6 @@ namespace vcpkg
return valid_fields;
}
SourceParagraph::SourceParagraph() = default;
void print_error_message(const ParseControlErrorInfo& info)
{
System::println(

View File

@ -35,7 +35,7 @@ namespace vcpkg::Commands::BuildCommand
const ExpectedT<SourceParagraph, ParseControlErrorInfo> maybe_spgh =
Paragraphs::try_load_port(paths.get_filesystem(), port_dir);
// why do we add a const here
if (!maybe_spgh)
{
print_error_message(maybe_spgh.error());