Enable build/explicit_make_pair for cpplint (#1935)
This commit is contained in:
parent
c2b8e7c624
commit
3c8c273582
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue