mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 12:46:19 +08:00
Use Strings::EMPTY instead of ""
This commit is contained in:
parent
4a6b43c15a
commit
d02d44b0f1
@ -68,12 +68,12 @@ namespace vcpkg::Commands::BuildCommand
|
|||||||
System::println(System::Color::error,
|
System::println(System::Color::error,
|
||||||
"The build command requires all dependencies to be already installed.");
|
"The build command requires all dependencies to be already installed.");
|
||||||
System::println("The following dependencies are missing:");
|
System::println("The following dependencies are missing:");
|
||||||
System::println("");
|
System::println(Strings::EMPTY);
|
||||||
for (const auto& p : result.unmet_dependencies)
|
for (const auto& p : result.unmet_dependencies)
|
||||||
{
|
{
|
||||||
System::println(" %s", p);
|
System::println(" %s", p);
|
||||||
}
|
}
|
||||||
System::println("");
|
System::println(Strings::EMPTY);
|
||||||
Checks::exit_fail(VCPKG_LINE_INFO);
|
Checks::exit_fail(VCPKG_LINE_INFO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ namespace vcpkg::Commands::Install
|
|||||||
bcf.core_paragraph.spec);
|
bcf.core_paragraph.spec);
|
||||||
System::print("\n ");
|
System::print("\n ");
|
||||||
System::println(Strings::join("\n ", intersection));
|
System::println(Strings::join("\n ", intersection));
|
||||||
System::println("");
|
System::println(Strings::EMPTY);
|
||||||
return InstallResult::FILE_CONFLICTS;
|
return InstallResult::FILE_CONFLICTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ namespace vcpkg::Commands::Version
|
|||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
+ std::string("-debug")
|
+ std::string("-debug")
|
||||||
#endif
|
#endif
|
||||||
+ std::string(Metrics::get_compiled_metrics_enabled() ? "" : "-external");
|
+ std::string(Metrics::get_compiled_metrics_enabled() ? Strings::EMPTY : "-external");
|
||||||
return s_version;
|
return s_version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user