From 12d0da619b4bed604f7f10cb0c307e35805506b3 Mon Sep 17 00:00:00 2001 From: tbeu Date: Fri, 3 Nov 2017 21:01:28 +0100 Subject: [PATCH] Use clear to reset string V815 Decreased performance. Consider replacing the expression 'token = ""' with 'token.clear()'. http.cpp 193 --- src/http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.cpp b/src/http.cpp index d63fff22..ce1801f3 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -187,7 +187,7 @@ static Exiv2::Dictionary stringToDict(const std::string& s) token += s[i]; } else { result[token]=token; - token=""; + token.clear(); } i++; }