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_client.hpp b/http/http_client.hpp
index b48fc6a..db426d6 100644
--- a/http/http_client.hpp
+++ b/http/http_client.hpp
@@ -318,8 +318,7 @@
{
state = ConnState::recvInProgress;
- parser_type& thisParser =
- parser.emplace(std::piecewise_construct, std::make_tuple());
+ parser_type& thisParser = parser.emplace();
thisParser.body_limit(connPolicy->requestByteLimit);