From 2c092654ebc3813ae63a2f5c1fdf7e4e6a6e8853 Mon Sep 17 00:00:00 2001 From: zeffy Date: Thu, 23 Jan 2020 14:28:35 -0800 Subject: [PATCH] Revert some minor changes --- include/fmt/chrono.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 7d551f1a..53c5260f 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -440,7 +440,6 @@ template struct formatter { }; namespace internal { - template FMT_CONSTEXPR const char* get_units() { return nullptr; } template <> FMT_CONSTEXPR const char* get_units() { return "as"; } template <> FMT_CONSTEXPR const char* get_units() { return "fs"; } @@ -491,12 +490,12 @@ FMT_CONSTEXPR const Char* parse_chrono_format(const Char* begin, break; case 'n': { const Char newline[] { '\n', 0 }; - handler.on_text(newline, &newline[1]); + handler.on_text(newline, newline + 1); break; } case 't': { const Char tab[] { '\t', 0 }; - handler.on_text(tab, &tab[1]); + handler.on_text(tab, tab + 1); break; } // Day of the week: