Use namespace std in place
This commit uses std in place in header files rather than
using namespace.
Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
Change-Id: If8e77ad0d23c7e6d8f16ea93e65f34aefb6b157f
diff --git a/vpd-manager/editor_impl.cpp b/vpd-manager/editor_impl.cpp
index e0f13d3..0f25794 100644
--- a/vpd-manager/editor_impl.cpp
+++ b/vpd-manager/editor_impl.cpp
@@ -313,15 +313,15 @@
std::string kwdData(thisRecord.kwdUpdatedData.begin(),
thisRecord.kwdUpdatedData.end());
- prop.emplace(ciPropertyList.key(), move(kwdData));
- interfaces.emplace(commonInterface.key(), move(prop));
- objects.emplace(objectPath, move(interfaces));
+ prop.emplace(ciPropertyList.key(), std::move(kwdData));
+ interfaces.emplace(commonInterface.key(), std::move(prop));
+ objects.emplace(objectPath, std::move(interfaces));
}
}
}
}
// Notify PIM
- common::utility::callPIM(move(objects));
+ common::utility::callPIM(std::move(objects));
}
void EditorImpl::processAndUpdateEI(const nlohmann::json& Inventory,
@@ -349,16 +349,17 @@
encodeKeyword(kwdData, eiPropertyList.value().value(
"encoding", ""));
- prop.emplace(eiPropertyList.key(), move(kwdData));
- interfaces.emplace(extraInterface.key(), move(prop));
- objects.emplace(objPath, move(interfaces));
+ prop.emplace(eiPropertyList.key(), std::move(kwdData));
+ interfaces.emplace(extraInterface.key(),
+ std::move(prop));
+ objects.emplace(objPath, std::move(interfaces));
}
}
}
}
}
// Notify PIM
- common::utility::callPIM(move(objects));
+ common::utility::callPIM(std::move(objects));
}
void EditorImpl::updateCache()
@@ -385,10 +386,10 @@
prop.emplace(thisRecord.recKWd, thisRecord.kwdUpdatedData);
interfaces.emplace(
(IPZ_INTERFACE + (std::string) "." + thisRecord.recName),
- move(prop));
+ std::move(prop));
objects.emplace(
(singleInventory["inventoryPath"].get<std::string>()),
- move(interfaces));
+ std::move(interfaces));
// process Common interface
processAndUpdateCI(singleInventory["inventoryPath"]
@@ -411,15 +412,15 @@
prop.emplace(thisRecord.recKWd, thisRecord.kwdUpdatedData);
interfaces.emplace(
(IPZ_INTERFACE + std::string{"."} + thisRecord.recName),
- move(prop));
+ std::move(prop));
objects.emplace(
(singleInventory["inventoryPath"].get<std::string>()),
- move(interfaces));
+ std::move(interfaces));
}
}
}
// Notify PIM
- common::utility::callPIM(move(objects));
+ common::utility::callPIM(std::move(objects));
}
void EditorImpl::expandLocationCode(const std::string& locationCodeType)
@@ -488,14 +489,14 @@
prop.emplace("LocationCode", expandedLocationCode);
// TODO depricate this com.ibm interface later
interfaces.emplace(IBM_LOCATION_CODE_INF, prop);
- interfaces.emplace(XYZ_LOCATION_CODE_INF, move(prop));
+ interfaces.emplace(XYZ_LOCATION_CODE_INF, std::move(prop));
}
}
- objects.emplace(move(object), move(interfaces));
+ objects.emplace(std::move(object), std::move(interfaces));
}
}
// Notify PIM
- common::utility::callPIM(move(objects));
+ common::utility::callPIM(std::move(objects));
}
void EditorImpl::updateKeyword(const Binary& kwdData, uint32_t offset,
@@ -509,7 +510,7 @@
vpdFileStream.open(vpdFilePath,
std::ios::in | std::ios::out | std::ios::binary);
- vpdFileStream.seekg(startOffset, ios_base::cur);
+ vpdFileStream.seekg(startOffset, std::ios_base::cur);
vpdFileStream.read(reinterpret_cast<char*>(&completeVPDFile[0]), 65504);
completeVPDFile.resize(vpdFileStream.gcount());
vpdFileStream.clear(std::ios_base::eofbit);