[clang-tidy] use == instead of compare for strings

Found with readability-string-compare

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-02-02 14:10:15 -08:00
parent 4b0444e760
commit 7e41c4de58
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B

View File

@ -37,7 +37,7 @@ ContentDirectoryService::ContentDirectoryService(const UPnPDevice &device,
m_modelName(device.modelName),
m_rdreqcnt(200)
{
if (!m_modelName.compare("MediaTomb")) {
if (m_modelName == "MediaTomb") {
// Readdir by 200 entries is good for most, but MediaTomb likes
// them really big. Actually 1000 is better but I don't dare
m_rdreqcnt = 500;