diff options
author | Max Kellermann <max@duempel.org> | 2013-10-28 23:12:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-28 23:12:48 +0100 |
commit | fd3dc7e5fb37883c62ec4e30978d482e82e30b16 (patch) | |
tree | 003c18a0d4e1d9d99425c13854392468cd7086b8 /src/decoder/DsdLib.cxx | |
parent | c37edfd3e934944283ccd943a2abb48adf7752d9 (diff) | |
download | mpd-fd3dc7e5fb37883c62ec4e30978d482e82e30b16.tar.gz mpd-fd3dc7e5fb37883c62ec4e30978d482e82e30b16.tar.xz mpd-fd3dc7e5fb37883c62ec4e30978d482e82e30b16.zip |
decoder/dsdlib: convert struct dsdlib_id to a class
Diffstat (limited to 'src/decoder/DsdLib.cxx')
-rw-r--r-- | src/decoder/DsdLib.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/decoder/DsdLib.cxx b/src/decoder/DsdLib.cxx index 81ea9e5e8..231f48c7a 100644 --- a/src/decoder/DsdLib.cxx +++ b/src/decoder/DsdLib.cxx @@ -41,13 +41,12 @@ #endif bool -dsdlib_id_equals(const struct dsdlib_id *id, const char *s) +DsdId::Equals(const char *s) const { - assert(id != nullptr); assert(s != nullptr); - assert(strlen(s) == sizeof(id->value)); + assert(strlen(s) == sizeof(value)); - return memcmp(id->value, s, sizeof(id->value)) == 0; + return memcmp(value, s, sizeof(value)) == 0; } bool |