VersionDiff.toString() -> VersionDiff.to_string()
MODIFY
include/VersionT.cpp
include/VersionT.cpp
@@ -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);
}

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

MODIFY
src/commands_portsdiff.cpp
src/commands_portsdiff.cpp
@@ -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());
}
}

MODIFY
src/commands_update.cpp
src/commands_update.cpp
@@ -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"

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