@@ -303,8 +303,8 @@ void getObjectsWithConnection(
303
303
* @param callback Callback for processing gathered connections
304
304
*/
305
305
template <typename Callback>
306
- void getConnections (std::shared_ptr<SensorsAsyncResp> sensorsAsyncResp,
307
- const std::shared_ptr<std::set<std::string>> sensorNames,
306
+ void getConnections (const std::shared_ptr<SensorsAsyncResp>& sensorsAsyncResp,
307
+ const std::shared_ptr<std::set<std::string>>& sensorNames,
308
308
Callback&& callback)
309
309
{
310
310
auto objectsWithConnectionCb =
@@ -970,10 +970,10 @@ inline void storeInventoryItemData(
970
970
*/
971
971
template <typename Callback>
972
972
void getInventoryItemsData (
973
- std::shared_ptr<SensorsAsyncResp> sensorsAsyncResp,
974
- std::shared_ptr<std::vector<InventoryItem>> inventoryItems,
975
- std::shared_ptr<std::set<std::string>> invConnections, Callback&& callback ,
976
- size_t invConnectionsIndex = 0 )
973
+ const std::shared_ptr<SensorsAsyncResp>& sensorsAsyncResp,
974
+ const std::shared_ptr<std::vector<InventoryItem>>& inventoryItems,
975
+ const std::shared_ptr<std::set<std::string>>& invConnections ,
976
+ Callback&& callback, size_t invConnectionsIndex = 0 )
977
977
{
978
978
BMCWEB_LOG_DEBUG (" getInventoryItemsData enter" );
979
979
@@ -1303,9 +1303,9 @@ void getInventoryItemAssociations(
1303
1303
*/
1304
1304
template <typename Callback>
1305
1305
void getInventoryLedData (
1306
- std::shared_ptr<SensorsAsyncResp> sensorsAsyncResp,
1307
- std::shared_ptr<std::vector<InventoryItem>> inventoryItems,
1308
- std::shared_ptr<std::map<std::string, std::string>> ledConnections,
1306
+ const std::shared_ptr<SensorsAsyncResp>& sensorsAsyncResp,
1307
+ const std::shared_ptr<std::vector<InventoryItem>>& inventoryItems,
1308
+ const std::shared_ptr<std::map<std::string, std::string>>& ledConnections,
1309
1309
Callback&& callback, size_t ledConnectionsIndex = 0 )
1310
1310
{
1311
1311
BMCWEB_LOG_DEBUG (" getInventoryLedData enter" );
@@ -1407,8 +1407,8 @@ void getInventoryLedData(
1407
1407
*/
1408
1408
template <typename Callback>
1409
1409
void getInventoryLeds (
1410
- std::shared_ptr<SensorsAsyncResp> sensorsAsyncResp,
1411
- std::shared_ptr<std::vector<InventoryItem>> inventoryItems,
1410
+ const std::shared_ptr<SensorsAsyncResp>& sensorsAsyncResp,
1411
+ const std::shared_ptr<std::vector<InventoryItem>>& inventoryItems,
1412
1412
Callback&& callback)
1413
1413
{
1414
1414
BMCWEB_LOG_DEBUG (" getInventoryLeds enter" );
@@ -1493,7 +1493,7 @@ void getInventoryLeds(
1493
1493
template <typename Callback>
1494
1494
void getPowerSupplyAttributesData (
1495
1495
const std::shared_ptr<SensorsAsyncResp>& sensorsAsyncResp,
1496
- std::shared_ptr<std::vector<InventoryItem>> inventoryItems,
1496
+ const std::shared_ptr<std::vector<InventoryItem>>& inventoryItems,
1497
1497
const std::map<std::string, std::string>& psAttributesConnections,
1498
1498
Callback&& callback)
1499
1499
{
@@ -1576,8 +1576,8 @@ void getPowerSupplyAttributesData(
1576
1576
*/
1577
1577
template <typename Callback>
1578
1578
void getPowerSupplyAttributes (
1579
- std::shared_ptr<SensorsAsyncResp> sensorsAsyncResp,
1580
- std::shared_ptr<std::vector<InventoryItem>> inventoryItems,
1579
+ const std::shared_ptr<SensorsAsyncResp>& sensorsAsyncResp,
1580
+ const std::shared_ptr<std::vector<InventoryItem>>& inventoryItems,
1581
1581
Callback&& callback)
1582
1582
{
1583
1583
BMCWEB_LOG_DEBUG (" getPowerSupplyAttributes enter" );
@@ -1674,20 +1674,20 @@ void getPowerSupplyAttributes(
1674
1674
*/
1675
1675
template <typename Callback>
1676
1676
inline void
1677
- getInventoryItems (std::shared_ptr<SensorsAsyncResp> sensorsAsyncResp,
1678
- const std::shared_ptr<std::set<std::string>> sensorNames,
1677
+ getInventoryItems (const std::shared_ptr<SensorsAsyncResp>& sensorsAsyncResp,
1678
+ const std::shared_ptr<std::set<std::string>>& sensorNames,
1679
1679
Callback&& callback)
1680
1680
{
1681
1681
BMCWEB_LOG_DEBUG (" getInventoryItems enter" );
1682
1682
auto getInventoryItemAssociationsCb =
1683
1683
[sensorsAsyncResp, callback = std::forward<Callback>(callback)](
1684
- std::shared_ptr<std::vector<InventoryItem>>
1684
+ const std::shared_ptr<std::vector<InventoryItem>>&
1685
1685
inventoryItems) mutable {
1686
1686
BMCWEB_LOG_DEBUG (" getInventoryItemAssociationsCb enter" );
1687
1687
auto getInventoryItemsConnectionsCb =
1688
1688
[sensorsAsyncResp, inventoryItems,
1689
1689
callback = std::forward<Callback>(callback)](
1690
- std::shared_ptr<std::set<std::string>>
1690
+ const std::shared_ptr<std::set<std::string>>&
1691
1691
invConnections) mutable {
1692
1692
BMCWEB_LOG_DEBUG (" getInventoryItemsConnectionsCb enter" );
1693
1693
auto getInventoryItemsDataCb =
0 commit comments