mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
VersionDiff.toString() -> VersionDiff.to_string()
This commit is contained in:
parent
cbc2b08ad1
commit
fb45692ada
@ -13,7 +13,7 @@ namespace vcpkg
|
||||
VersionDiff::VersionDiff() : left(), right() {}
|
||||
VersionDiff::VersionDiff(const VersionT& left, const VersionT& right) : left(left), right(right) {}
|
||||
|
||||
std::string VersionDiff::toString() const
|
||||
std::string VersionDiff::to_string() const
|
||||
{
|
||||
return Strings::format("%s -> %s", left.value, right.value);
|
||||
}
|
||||
|
@ -23,6 +23,6 @@ namespace vcpkg
|
||||
VersionDiff();
|
||||
VersionDiff(const VersionT& left, const VersionT& right);
|
||||
|
||||
std::string toString() const;
|
||||
std::string to_string() const;
|
||||
};
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ namespace vcpkg::Commands::PortsDiff
|
||||
System::println("\nThe following %d ports were updated:\n", updated_ports.size());
|
||||
for (const updated_port& p : updated_ports)
|
||||
{
|
||||
System::println("%-20s %-16s", p.port, p.version_diff.toString());
|
||||
System::println("%-20s %-16s", p.port, p.version_diff.to_string());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ namespace vcpkg::Commands::Update
|
||||
System::println("The following packages differ from their port versions:");
|
||||
for (auto&& package : outdated_packages)
|
||||
{
|
||||
System::println(" %-32s %s", package.spec.display_name(), package.version_diff.toString());
|
||||
System::println(" %-32s %s", package.spec.display_name(), package.version_diff.to_string());
|
||||
}
|
||||
System::println("\n"
|
||||
"To update these packages, run\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user