mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-01 13:37:55 +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() : left(), right() {}
|
||||||
VersionDiff::VersionDiff(const VersionT& left, const VersionT& right) : left(left), right(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);
|
return Strings::format("%s -> %s", left.value, right.value);
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,6 @@ namespace vcpkg
|
|||||||
VersionDiff();
|
VersionDiff();
|
||||||
VersionDiff(const VersionT& left, const VersionT& right);
|
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());
|
System::println("\nThe following %d ports were updated:\n", updated_ports.size());
|
||||||
for (const updated_port& p : updated_ports)
|
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:");
|
System::println("The following packages differ from their port versions:");
|
||||||
for (auto&& package : outdated_packages)
|
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"
|
System::println("\n"
|
||||||
"To update these packages, run\n"
|
"To update these packages, run\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user