Clean up static analysis
Coverity marks some minor things as improvements we can make.
Clean up the code to silence the errors.
Tested: Unit tests coverage for http core is sufficient.
Change-Id: If4efb359792bfdfe3866e843b4bbdb3f83fec0c5
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/http/http_connection.hpp b/http/http_connection.hpp
index 29d4fc8..927b825 100644
--- a/http/http_connection.hpp
+++ b/http/http_connection.hpp
@@ -228,7 +228,7 @@
void initParser()
{
boost::beast::http::request_parser<bmcweb::HttpBody>& instance =
- parser.emplace(std::piecewise_construct, std::make_tuple());
+ parser.emplace();
// reset header limit for newly created parser
instance.header_limit(httpHeaderLimit);