From 161920d777d37fee6a90ba35ecd94c40fafaafc9 Mon Sep 17 00:00:00 2001 From: Stefan Hillmich Date: Mon, 12 Sep 2022 11:32:31 +0200 Subject: [PATCH] Make type more explicit --- include/cxxopts.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index df21542..69b8a55 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1914,13 +1914,13 @@ format_description while (current != std::end(desc)) { appendNewLine = false; - - if (std::isblank(*previous, std::locale::classic())) + const char prev = *previous; + if (std::isblank(prev, std::locale::classic())) { lastSpace = current; } - - if (!std::isblank(*current, std::locale::classic())) + const char curr = *current; + if (!std::isblank(curr, std::locale::classic())) { onlyWhiteSpace = false; }