util/String{Compare,API}: add more "noexcept"

This commit is contained in:
Max Kellermann
2017-05-16 23:02:36 +02:00
parent 0fcc28a108
commit 60bd60db03
3 changed files with 3 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ StringIsEqual(const char *a, const char *b, size_t length) noexcept
*/ */
gcc_malloc gcc_nonnull_all gcc_malloc gcc_nonnull_all
static inline char * static inline char *
DuplicateString(const char *p) DuplicateString(const char *p) noexcept
{ {
return strdup(p); return strdup(p);
} }

View File

@@ -38,7 +38,7 @@
#endif #endif
static inline bool static inline bool
StringIsEmpty(const char *string) StringIsEmpty(const char *string) noexcept
{ {
return *string == 0; return *string == 0;
} }

View File

@@ -35,7 +35,7 @@
#include <wchar.h> #include <wchar.h>
static inline bool static inline bool
StringIsEmpty(const wchar_t *string) StringIsEmpty(const wchar_t *string) noexcept
{ {
return *string == 0; return *string == 0;
} }