diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-03 16:18:21 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-04 16:44:43 -0700 |
| commit | cbc2b08ad1a2bd7fe39a50ed00871f75585d0e02 (patch) | |
| tree | 1b7fb19efaef270caa705e6c396fbefaff56b0dd /toolsrc/include | |
| parent | b766a005b7a67d7adeadc16e765bda34d679f45d (diff) | |
| download | vcpkg-cbc2b08ad1a2bd7fe39a50ed00871f75585d0e02.tar.gz vcpkg-cbc2b08ad1a2bd7fe39a50ed00871f75585d0e02.zip | |
version_diff_t -> VersionDiff
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/VersionT.cpp | 6 | ||||
| -rw-r--r-- | toolsrc/include/VersionT.h | 6 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg_Commands.h | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/toolsrc/include/VersionT.cpp b/toolsrc/include/VersionT.cpp index 617fa23c7..50dc12693 100644 --- a/toolsrc/include/VersionT.cpp +++ b/toolsrc/include/VersionT.cpp @@ -10,10 +10,10 @@ namespace vcpkg bool operator!=(const VersionT& left, const VersionT& right) { return left.value != right.value; } std::string to_printf_arg(const VersionT& version) { return version.value; } - version_diff_t::version_diff_t() : left(), right() {} - version_diff_t::version_diff_t(const VersionT& left, const VersionT& right) : left(left), right(right) {} + VersionDiff::VersionDiff() : left(), right() {} + VersionDiff::VersionDiff(const VersionT& left, const VersionT& right) : left(left), right(right) {} - std::string version_diff_t::toString() const + std::string VersionDiff::toString() const { return Strings::format("%s -> %s", left.value, right.value); } diff --git a/toolsrc/include/VersionT.h b/toolsrc/include/VersionT.h index f02479f46..06fc6ee2f 100644 --- a/toolsrc/include/VersionT.h +++ b/toolsrc/include/VersionT.h @@ -15,13 +15,13 @@ namespace vcpkg bool operator !=(const VersionT& left, const VersionT& right); std::string to_printf_arg(const VersionT& version); - struct version_diff_t + struct VersionDiff { VersionT left; VersionT right; - version_diff_t(); - version_diff_t(const VersionT& left, const VersionT& right); + VersionDiff(); + VersionDiff(const VersionT& left, const VersionT& right); std::string toString() const; }; diff --git a/toolsrc/include/vcpkg_Commands.h b/toolsrc/include/vcpkg_Commands.h index 6bdc7d10e..c6473fa8b 100644 --- a/toolsrc/include/vcpkg_Commands.h +++ b/toolsrc/include/vcpkg_Commands.h @@ -64,7 +64,7 @@ namespace vcpkg::Commands static bool compare_by_name(const OutdatedPackage& left, const OutdatedPackage& right); PackageSpec spec; - version_diff_t version_diff; + VersionDiff version_diff; }; std::vector<OutdatedPackage> find_outdated_packages(const vcpkg_paths& paths, const StatusParagraphs& status_db); |
