util/StringCompare: add constexpr

This commit is contained in:
Max Kellermann 2022-11-17 17:16:08 +01:00 committed by Max Kellermann
parent 3e2bff296f
commit fb961e89da

View File

@ -12,8 +12,8 @@
#include <string_view> #include <string_view>
[[gnu::pure]] [[gnu::nonnull]] [[gnu::nonnull]]
static inline bool static constexpr bool
StringIsEmpty(const char *string) noexcept StringIsEmpty(const char *string) noexcept
{ {
return *string == 0; return *string == 0;