Enable build/explicit_make_pair for cpplint (#1935)

This commit is contained in:
Ken Matsui 2024-01-30 19:21:39 -08:00 committed by GitHub
parent c2b8e7c624
commit 3c8c273582
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,6 @@ filter=-build/include
filter=-build/header_guard
filter=-build/include_what_you_use
filter=-build/include_order
filter=-build/explicit_make_pair
filter=-runtime/explicit
filter=-runtime/string
filter=-runtime/int

View File

@ -290,8 +290,9 @@ static void loadApp(const Json::Value &app)
std::vector<std::pair<std::string, std::string>> headers;
for (auto &header : app["static_file_headers"])
{
headers.emplace_back(std::make_pair<std::string, std::string>(
header["name"].asString(), header["value"].asString()));
headers.emplace_back(
std::make_pair(header["name"].asString(),
header["value"].asString()));
}
drogon::app().setStaticFileHeaders(headers);
}