Commit 60bd60db authored by Max Kellermann's avatar Max Kellermann

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

parent 0fcc28a1
......@@ -140,7 +140,7 @@ StringIsEqual(const char *a, const char *b, size_t length) noexcept
*/
gcc_malloc gcc_nonnull_all
static inline char *
DuplicateString(const char *p)
DuplicateString(const char *p) noexcept
{
return strdup(p);
}
......
......@@ -38,7 +38,7 @@
#endif
static inline bool
StringIsEmpty(const char *string)
StringIsEmpty(const char *string) noexcept
{
return *string == 0;
}
......
......@@ -35,7 +35,7 @@
#include <wchar.h>
static inline bool
StringIsEmpty(const wchar_t *string)
StringIsEmpty(const wchar_t *string) noexcept
{
return *string == 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment