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
@@ -41,7 +41,7 @@ void httpcon(const std::string& url, bool useHttp1_0 = false) {
|
||||
if (!useHttp1_0) request["version"] = "1.1";
|
||||
|
||||
int serverCode = Exiv2::http(request,response,errors);
|
||||
if (serverCode < 0 || serverCode >= 400 || errors.compare("") != 0) {
|
||||
if (serverCode < 0 || serverCode >= 400 || errors != "") {
|
||||
throw Exiv2::Error(Exiv2::kerTiffDirectoryTooLarge, "Server", serverCode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user