PerformScan: Searching with 'recordName' means we found a 'record'
Rename fromLastJson to something sensible.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I2c400eb59d395129002fb473f3dbd97e57968e72
diff --git a/src/PerformScan.cpp b/src/PerformScan.cpp
index 4203cd7..c792956 100644
--- a/src/PerformScan.cpp
+++ b/src/PerformScan.cpp
@@ -364,20 +364,20 @@
std::string recordName =
getRecordName(itr->interface, probeName);
- auto fromLastJson = lastJson.find(recordName);
- if (fromLastJson == lastJson.end())
+ auto record = lastJson.find(recordName);
+ if (record == lastJson.end())
{
itr++;
continue;
}
- pruneRecordExposes(*fromLastJson);
+ pruneRecordExposes(*record);
recordDiscoveredIdentifiers(usedNames, indexes, probeName,
- *fromLastJson);
+ *record);
// keep user changes
- _systemConfiguration[recordName] = *fromLastJson;
+ _systemConfiguration[recordName] = *record;
_missingConfigurations.erase(recordName);
// We've processed the device, remove it and advance the