summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2019-10-23 13:31:38 -0700
committerJames Feist <james.feist@linux.intel.com>2019-11-19 17:14:04 +0000
commitfd4859a7fba462b9762ac948702a1e768c66848f (patch)
treeca0a68df56dc6494aeaad2946f47c12170f76b7c /include
parent4bb3dc346522b5f1e3bf6241c64238837caff5d2 (diff)
downloadbmcweb-fd4859a7fba462b9762ac948702a1e768c66848f.tar.gz
bmcweb-fd4859a7fba462b9762ac948702a1e768c66848f.zip
Remove unused wildcard captures
Considering that wild card captures are now known to be difficult to maintain, remove a couple instances of them from app. They are no longer used as a capture, so can be safely removed with no effect. It's likely the compiler is doing this already. Tested: No functional change. Code compiles. Signed-off-by: Ed Tanous <ed.tanous@intel.com> Change-Id: I252344a4608f7e107bcb273d725b5a484eb7a17d
Diffstat (limited to 'include')
-rw-r--r--include/token_authorization_middleware.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/token_authorization_middleware.hpp b/include/token_authorization_middleware.hpp
index e9eb65f..4d7cc08 100644
--- a/include/token_authorization_middleware.hpp
+++ b/include/token_authorization_middleware.hpp
@@ -287,7 +287,7 @@ template <typename... Middlewares> void requestRoutes(Crow<Middlewares...>& app)
"auth routes");
BMCWEB_ROUTE(app, "/login")
.methods(
- "POST"_method)([&](const crow::Request& req, crow::Response& res) {
+ "POST"_method)([](const crow::Request& req, crow::Response& res) {
std::string_view contentType = req.getHeaderValue("content-type");
std::string_view username;
std::string_view password;
@@ -448,7 +448,7 @@ template <typename... Middlewares> void requestRoutes(Crow<Middlewares...>& app)
BMCWEB_ROUTE(app, "/logout")
.methods("POST"_method)(
- [&](const crow::Request& req, crow::Response& res) {
+ [](const crow::Request& req, crow::Response& res) {
auto& session = req.session;
if (session != nullptr)
{
OpenPOWER on IntegriCloud