summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-02-02 14:10:15 -0800
committerRosen Penev <rosenp@gmail.com>2020-02-02 20:11:25 -0800
commit7e41c4de58412e0a1b915f0598da66fe1e29988e (patch)
tree2c1c10093d75480be6e7a71f9a1d97e894d87080 /src/lib
parent4b0444e760a3bcbaeb8cfd1f7964b00d9f0fe07a (diff)
[clang-tidy] use == instead of compare for strings
Found with readability-string-compare Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/upnp/ContentDirectoryService.cxx2
1 files changed, 1 insertions, 1 deletions
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;