Skip to content

Commit 4225fb8

Browse files
committed
WIP
Signed-off-by: Dave Streeter <dave.streeter@lexisnexisrisk.com>
1 parent ad2255d commit 4225fb8

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

ecl/eclagent/eclagent.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -690,15 +690,13 @@ void EclAgent::deleteTempFiles()
690690

691691
if (!tempOwnerId.isEmpty())
692692
{
693-
Owned<HashIterator> iter = new HashIterator(tempFileInfoMap);
694-
for (iter->first(); iter->isValid(); iter->next())
693+
HashIterator it(tempFileInfoMap);
694+
ForEach(it)
695695
{
696-
CTempFileInfo *tempFileInfo = tempFileInfoMap.mapToValue(&iter->query());
697-
if (!tempFileInfo)
698-
continue;
699-
700-
const char *key = static_cast<const char *>(iter->query().getKey());
701-
removeTemporaryFile(key);
696+
const char *originalId = static_cast<const char *>(it.query().getKey());
697+
CTempFileInfo *tempFileInfo = tempFileInfoMap.getValue(originalId);
698+
if (tempFileInfo)
699+
removeTemporaryFile(originalId);
702700
}
703701
}
704702
}

0 commit comments

Comments
 (0)