From 32be452302acaf4d93f98bbcc1a2a12e47d7f1ee Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Tue, 28 Oct 2014 21:27:29 +0100 Subject: [PATCH] Fix compilation --- src/cxxopts.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cxxopts.hpp b/src/cxxopts.hpp index 5bd7d5f..8562966 100644 --- a/src/cxxopts.hpp +++ b/src/cxxopts.hpp @@ -790,7 +790,7 @@ namespace cxxopts if (o.has_default) { - result += " [" + o.default_value + "]"; + result += " [" + toLocalString(o.default_value) + "]"; } } @@ -1159,7 +1159,6 @@ Options::help_one_group(const std::string& g) const for (const auto& o : group->second.options) { auto s = format_option(o); - longest = std::max(longest, s.size()); longest = std::max(longest, stringLength(s)); format.push_back(std::make_pair(s, String())); } -- libgit2 0.21.4