VersionDiff.toString() -> VersionDiff.to_string()

This commit is contained in:
Alexander Karatarakis 2017-04-03 16:20:12 -07:00
parent cbc2b08ad1
commit fb45692ada
4 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -23,6 +23,6 @@ namespace vcpkg
VersionDiff();
VersionDiff(const VersionT& left, const VersionT& right);
std::string toString() const;
std::string to_string() const;
};
}

View File

@ -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());
}
}

View File

@ -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"