clang-tidy: Enable performance-unnecessary-value-param check
This check flags value parameter declarations of expensive to copy
types that are copied for each invocation but it would suffice to
pass them by const reference.
Change-Id: I631deda63fcbb74362313c9596bf7e72933b0d0c
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/item_updater.hpp b/item_updater.hpp
index 59f9839..a0607fe 100644
--- a/item_updater.hpp
+++ b/item_updater.hpp
@@ -275,7 +275,7 @@
*
* @param[in] versionId - The version id.
*/
- void removeReadOnlyPartition(std::string versionId);
+ void removeReadOnlyPartition(const std::string& versionId);
/** @brief Copies U-Boot from the currently booted BMC chip to the
* alternate chip.