From 7e41c4de58412e0a1b915f0598da66fe1e29988e Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 2 Feb 2020 14:10:15 -0800 Subject: [PATCH] [clang-tidy] use == instead of compare for strings Found with readability-string-compare Signed-off-by: Rosen Penev --- src/lib/upnp/ContentDirectoryService.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/upnp/ContentDirectoryService.cxx b/src/lib/upnp/ContentDirectoryService.cxx index f43a304a9..539da0fa5 100644 --- a/src/lib/upnp/ContentDirectoryService.cxx +++ b/src/lib/upnp/ContentDirectoryService.cxx @@ -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;