aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/VersionT.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-04-27 17:56:06 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-04-27 18:59:57 -0700
commit75e8752cb90eb8bc7717518d9d6a5c68f27f2b0f (patch)
treeb3a8c01beebba2b7e5524363b59bfc088aab83a2 /toolsrc/include/VersionT.cpp
parentdb2bc7ed80cd85935bcf80a02a06c796d01197b7 (diff)
downloadvcpkg-75e8752cb90eb8bc7717518d9d6a5c68f27f2b0f.tar.gz
vcpkg-75e8752cb90eb8bc7717518d9d6a5c68f27f2b0f.zip
Run clang-format over the headers. Remove stray Version.h/cpp. Fix location of VersionT.cpp
Diffstat (limited to 'toolsrc/include/VersionT.cpp')
-rw-r--r--toolsrc/include/VersionT.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/toolsrc/include/VersionT.cpp b/toolsrc/include/VersionT.cpp
deleted file mode 100644
index 6ea5d3810..000000000
--- a/toolsrc/include/VersionT.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "pch.h"
-#include "VersionT.h"
-#include "vcpkg_Strings.h"
-
-namespace vcpkg
-{
- VersionT::VersionT() : value("0.0.0") {}
- VersionT::VersionT(const std::string& value) : value(value) {}
- std::string VersionT::to_string() const { return value; }
- bool operator==(const VersionT& left, const VersionT& right) { return left.value == right.value; }
- bool operator!=(const VersionT& left, const VersionT& right) { return left.value != right.value; }
- std::string to_printf_arg(const VersionT& version) { return version.value; }
-
- VersionDiff::VersionDiff() : left(), right() {}
- VersionDiff::VersionDiff(const VersionT& left, const VersionT& right) : left(left), right(right) {}
-
- std::string VersionDiff::to_string() const
- {
- return Strings::format("%s -> %s", left.value, right.value);
- }
-}