summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-20 15:31:09 +0200
committerMax Kellermann <max@musicpd.org>2018-08-20 15:31:09 +0200
commit75c836fbd9933c7047ff4d4d64869a5a1dafe428 (patch)
treecba8c8a30fb771e0c22f01c08c082d37726e6b15 /src/util
parent94b1025780bc41dcf4c3fc886084965d184630ea (diff)
util/StringAPI: use StringCompare() in StringIsEqual()
Diffstat (limited to 'src/util')
-rw-r--r--src/util/StringAPI.hxx2
-rw-r--r--src/util/WStringAPI.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/StringAPI.hxx b/src/util/StringAPI.hxx
index b25284006..483f8a292 100644
--- a/src/util/StringAPI.hxx
+++ b/src/util/StringAPI.hxx
@@ -141,7 +141,7 @@ gcc_pure gcc_nonnull_all
static inline bool
StringIsEqual(const char *a, const char *b) noexcept
{
- return strcmp(a, b) == 0;
+ return StringCompare(a, b) == 0;
}
/**
diff --git a/src/util/WStringAPI.hxx b/src/util/WStringAPI.hxx
index 13d3fd2cf..0fd70b72a 100644
--- a/src/util/WStringAPI.hxx
+++ b/src/util/WStringAPI.hxx
@@ -137,7 +137,7 @@ gcc_pure gcc_nonnull_all
static inline bool
StringIsEqual(const wchar_t *str1, const wchar_t *str2) noexcept
{
- return wcscmp(str1, str2) == 0;
+ return StringCompare(str1, str2) == 0;
}
/**