Remove some redundant consts (#4445)

`constexpr` variables are implicitly `const`.
This commit is contained in:
Victor Chernyakin
2025-05-12 10:41:58 -07:00
committed by GitHub
parent 9b0ebd4435
commit b5266fd3b9
6 changed files with 29 additions and 31 deletions

View File

@ -1940,8 +1940,8 @@ TEST(format_test, unpacked_args) {
constexpr char with_null[3] = {'{', '}', '\0'};
constexpr char no_null[2] = {'{', '}'};
static constexpr const char static_with_null[3] = {'{', '}', '\0'};
static constexpr const char static_no_null[2] = {'{', '}'};
static constexpr char static_with_null[3] = {'{', '}', '\0'};
static constexpr char static_no_null[2] = {'{', '}'};
TEST(format_test, compile_time_string) {
EXPECT_EQ(fmt::format(FMT_STRING("foo")), "foo");