clang-tidy: don't use string compare
Found with readability-string-compare Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Luis Díaz Más
parent
8337462032
commit
143a1fbbe2
+1
-1
@@ -277,7 +277,7 @@ namespace Exiv2 {
|
||||
bool fileExists(const std::string& path, bool ct)
|
||||
{
|
||||
// special case: accept "-" (means stdin)
|
||||
if (path.compare("-") == 0 || fileProtocol(path) != pFile) {
|
||||
if (path == "-" || fileProtocol(path) != pFile) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user