summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-07-01 08:30:50 +0300
committerEd Tanous <ed@tanous.net>2022-12-22 00:04:50 +0300
commit1917ee95a4c3a430f2f7afc85d9385d098af3e23 (patch)
tree8e113ad6b76f74c5b6cdc7716b9c8af2104d571d
parent262f115299479c8f1142954622a358d53318e9fd (diff)
downloadbmcweb-1917ee95a4c3a430f2f7afc85d9385d098af3e23.tar.xz
Avoid copy
cppcheck warns that this is a copy, so fix it. Tested: cppcheck no longer warns on this line. Unfortunately, virtual media does not have a backend, so this is dead code. No way to test at this point. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I1e98ca63ee346ad683844e5637a173f64286102a
-rw-r--r--redfish-core/lib/virtual_media.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/virtual_media.hpp b/redfish-core/lib/virtual_media.hpp
index 402cbbd11d..f287cb2a39 100644
--- a/redfish-core/lib/virtual_media.hpp
+++ b/redfish-core/lib/virtual_media.hpp
@@ -561,7 +561,7 @@ class CredentialsProvider
return credentials.password();
}
- SecureBuffer pack(FormatterFunc formatter)
+ SecureBuffer pack(FormatterFunc* formatter)
{
SecureBuffer packed{new Buffer{}};
if (formatter != nullptr)