mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-02 22:35:31 +08:00
minor changes
This commit is contained in:
parent
6c09b1dd24
commit
cc443d1c6b
@ -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;
|
||||
|
@ -37,8 +37,6 @@ namespace vcpkg
|
||||
return valid_fields;
|
||||
}
|
||||
|
||||
SourceParagraph::SourceParagraph() = default;
|
||||
|
||||
void print_error_message(const ParseControlErrorInfo& info)
|
||||
{
|
||||
System::println(
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user