aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/VersionT.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-04-07 17:56:26 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-04-07 17:56:26 -0700
commit599c22f2affc863ab4acebbc465c563c6fe11d8b (patch)
tree823f339284e8743bb6a586cebfb46b840a1dc9ee /toolsrc/include/VersionT.cpp
parent12f09d3151b44571ce64217ca4f6c5958d249cd6 (diff)
downloadvcpkg-599c22f2affc863ab4acebbc465c563c6fe11d8b.tar.gz
vcpkg-599c22f2affc863ab4acebbc465c563c6fe11d8b.zip
VersionT: replace to_printf_arg() with .to_string()
Diffstat (limited to 'toolsrc/include/VersionT.cpp')
-rw-r--r--toolsrc/include/VersionT.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/toolsrc/include/VersionT.cpp b/toolsrc/include/VersionT.cpp
index c51052b98..6ea5d3810 100644
--- a/toolsrc/include/VersionT.cpp
+++ b/toolsrc/include/VersionT.cpp
@@ -6,6 +6,7 @@ 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; }