Commit 28b79b2f authored by peastman's avatar peastman
Browse files

Use C++11 style loops

parent ab8f1021
...@@ -184,10 +184,10 @@ public: ...@@ -184,10 +184,10 @@ public:
const map<VoxelIndex, Voxel>::const_iterator voxelEntry = voxelMap.find(voxelIndex); const map<VoxelIndex, Voxel>::const_iterator voxelEntry = voxelMap.find(voxelIndex);
if (voxelEntry == voxelMap.end()) continue; // no such voxel; skip if (voxelEntry == voxelMap.end()) continue; // no such voxel; skip
const Voxel& voxel = voxelEntry->second; const Voxel& voxel = voxelEntry->second;
for (Voxel::const_iterator itemIter = voxel.begin(); itemIter != voxel.end(); ++itemIter) for (auto& item : voxel)
{ {
const AtomIndex atomJ = itemIter->second; const AtomIndex atomJ = item.second;
const Vec3& locationJ = *itemIter->first; const Vec3& locationJ = *item.first;
// Ignore self hits // Ignore self hits
if (atomI == atomJ) continue; if (atomI == atomJ) continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment