From fc2a376d8ec74ec3c3f7a6f8eb4aeb2ed2c732d7 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 22 Dec 2021 21:45:04 +0100 Subject: [PATCH] Remove two expressions which had no effect (reported by LGTM) Signed-off-by: Stefan Weil --- include/fmt/core.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 9ad32e91..6f75b353 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1500,14 +1500,11 @@ class appender : public std::back_insert_iterator> { using _Unchecked_type = appender; // Mark iterator as checked. auto operator++() -> appender& { - base::operator++(); return *this; } auto operator++(int) -> appender { - auto tmp = *this; - ++*this; - return tmp; + return *this; } };