util/StringCompare: add constexpr
This commit is contained in:
committed by
Max Kellermann
parent
52e2130d51
commit
b745d1f226
@@ -11,14 +11,14 @@
|
||||
#include <wchar.h>
|
||||
|
||||
[[gnu::pure]] [[gnu::nonnull]]
|
||||
static inline bool
|
||||
static constexpr bool
|
||||
StringIsEmpty(const wchar_t *string) noexcept
|
||||
{
|
||||
return *string == 0;
|
||||
}
|
||||
|
||||
[[gnu::pure]]
|
||||
static inline bool
|
||||
static constexpr bool
|
||||
StringIsEqual(std::wstring_view a, std::wstring_view b) noexcept
|
||||
{
|
||||
return a == b;
|
||||
|
||||
Reference in New Issue
Block a user