diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-02-02 14:10:15 -0800 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-02-02 20:11:25 -0800 |
commit | 7e41c4de58412e0a1b915f0598da66fe1e29988e (patch) | |
tree | 2c1c10093d75480be6e7a71f9a1d97e894d87080 /src/lib | |
parent | 4b0444e760a3bcbaeb8cfd1f7964b00d9f0fe07a (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.cxx | 2 |
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; |