From fb961e89da39ba1a9970e7f09530dd1d515de723 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Nov 2022 17:16:08 +0100 Subject: [PATCH] util/StringCompare: add `constexpr` --- src/util/StringCompare.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/StringCompare.hxx b/src/util/StringCompare.hxx index a7aca0ce0..f08b32d6c 100644 --- a/src/util/StringCompare.hxx +++ b/src/util/StringCompare.hxx @@ -12,8 +12,8 @@ #include -[[gnu::pure]] [[gnu::nonnull]] -static inline bool +[[gnu::nonnull]] +static constexpr bool StringIsEmpty(const char *string) noexcept { return *string == 0;