Change to pass by reference
removeActiveAssociation and createActiveAssociation should be
pass by reference.
Change-Id: I5d4bb8a15714dcae5f2b71c5151262940cc91f49
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/item_updater.cpp b/item_updater.cpp
index b451932..1014890 100644
--- a/item_updater.cpp
+++ b/item_updater.cpp
@@ -521,7 +521,7 @@
}
}
-void ItemUpdater::createActiveAssociation(std::string path)
+void ItemUpdater::createActiveAssociation(const std::string& path)
{
assocs.emplace_back(std::make_tuple(ACTIVE_FWD_ASSOCIATION,
ACTIVE_REV_ASSOCIATION,
@@ -549,7 +549,7 @@
associations(assocs);
}
-void ItemUpdater::removeActiveAssociation(std::string path)
+void ItemUpdater::removeActiveAssociation(const std::string& path)
{
for (auto iter = assocs.begin(); iter != assocs.end();)
{