Skip to content

Commit

Permalink
fix additional clangg-tidy complains for util.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoloudongfeng committed May 7, 2024
1 parent ce6bde7 commit de16ea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpr/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

namespace cpr::util {

enum class CurlHTTPCookieField : size_t {
enum class CurlHTTPCookieField : uint8_t {
Domain = 0,
IncludeSubdomains,
Path,
Expand Down Expand Up @@ -104,7 +104,7 @@ Header parseHeader(const std::string& headers, std::string* status_line, std::st
header.clear();
}

if (line.length() > 0) {
if (!line.empty()) {
const size_t found = line.find(':');
if (found != std::string::npos) {
std::string value = line.substr(found + 1);
Expand Down

0 comments on commit de16ea8

Please sign in to comment.