PerformScan: Rename fromLastJson in recordDiscoveredIdentifiers()

Now that we're freed from the caller context give it a name that
represents it the object in the context of the function.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ie7c384b5f3fc9cc281c15193c150f383c3a295dd
diff --git a/src/PerformScan.cpp b/src/PerformScan.cpp
index f1f5f94..9c621a0 100644
--- a/src/PerformScan.cpp
+++ b/src/PerformScan.cpp
@@ -266,7 +266,7 @@
 static void recordDiscoveredIdentifiers(std::set<nlohmann::json>& usedNames,
                                         std::list<size_t>& indexes,
                                         const std::string& probeName,
-                                        const nlohmann::json& fromLastJson)
+                                        const nlohmann::json& record)
 {
     size_t indexIdx = probeName.find('$');
     if (indexIdx == std::string::npos)
@@ -274,8 +274,8 @@
         return;
     }
 
-    auto nameIt = fromLastJson.find("Name");
-    if (nameIt == fromLastJson.end())
+    auto nameIt = record.find("Name");
+    if (nameIt == record.end())
     {
         std::cerr << "Last JSON Illegal\n";
         return;