Fix cppcheck warnings
This patch fixes the following cppcheck issues:
git/src/argument.cpp:52:35:
Parameter 'argv' can be const. [constParameter]
git/src/ncsi_util.hpp:104,105,158,159:
Missing 'override' on virtuals. [missingOverride]
git/src/ncsi_util.cpp:387:33:
C-style cast used. [cstyleCast]
git/src/ncsi_util.cpp:654:26:
'respPayload' not assigned. [unassignedVariable]
static_gateway.cpp:17:60:
Param 'addr' should be const ref. [passedByValue]
Change-Id: Icb96e9fb891512924febef48b09aaf291a50add1
Signed-off-by: Rashid MP <rashidmp@ami.com>
diff --git a/src/static_gateway.cpp b/src/static_gateway.cpp
index f1e9db4..27c4f85 100644
--- a/src/static_gateway.cpp
+++ b/src/static_gateway.cpp
@@ -14,7 +14,7 @@
namespace network
{
-static auto makeObjPath(std::string_view root, std::string addr)
+static auto makeObjPath(std::string_view root, const std::string& addr)
{
auto ret = sdbusplus::message::object_path(std::string(root));
ret /= addr;