prefer prefix operators for non-primitive types
cppcheck recommended changes:
[src/FruDevice.cpp:639]
[src/EntityManager.cpp:349]
[src/EntityManager.cpp:502]
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Iaae360c4613d959094b7d05888fbc289484d17fc
diff --git a/src/FruDevice.cpp b/src/FruDevice.cpp
index f7be420..4d5486d 100644
--- a/src/FruDevice.cpp
+++ b/src/FruDevice.cpp
@@ -723,7 +723,7 @@
for (const std::string& area : FRU_AREAS)
{
- fruAreaOffsetField++;
+ ++fruAreaOffsetField;
if (fruAreaOffsetField >= fruBytes.end())
{
return false;