From 3c8c273582477d12b6af83ee645405092b005b6d Mon Sep 17 00:00:00 2001 From: Ken Matsui <26405363+ken-matsui@users.noreply.github.com> Date: Tue, 30 Jan 2024 19:21:39 -0800 Subject: [PATCH] Enable build/explicit_make_pair for cpplint (#1935) --- CPPLINT.cfg | 1 - lib/src/ConfigLoader.cc | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CPPLINT.cfg b/CPPLINT.cfg index 6a8c87cd..7b206932 100644 --- a/CPPLINT.cfg +++ b/CPPLINT.cfg @@ -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 diff --git a/lib/src/ConfigLoader.cc b/lib/src/ConfigLoader.cc index c7f0cdde..3e9fa5da 100644 --- a/lib/src/ConfigLoader.cc +++ b/lib/src/ConfigLoader.cc @@ -290,8 +290,9 @@ static void loadApp(const Json::Value &app) std::vector> headers; for (auto &header : app["static_file_headers"]) { - headers.emplace_back(std::make_pair( - header["name"].asString(), header["value"].asString())); + headers.emplace_back( + std::make_pair(header["name"].asString(), + header["value"].asString())); } drogon::app().setStaticFileHeaders(headers); }