aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/DsdLib.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/DsdLib.cxx')
-rw-r--r--src/decoder/DsdLib.cxx7
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