"platforms/cuda-old/include/CudaKernelFactory.h" did not exist on "a402046652cab8ba297aa423e4cb57c904525144"
Commit 28b79b2f authored by peastman's avatar peastman
Browse files

Use C++11 style loops

parent ab8f1021
......@@ -184,10 +184,10 @@ public:
const map<VoxelIndex, Voxel>::const_iterator voxelEntry = voxelMap.find(voxelIndex);
if (voxelEntry == voxelMap.end()) continue; // no such voxel; skip
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 Vec3& locationJ = *itemIter->first;
const AtomIndex atomJ = item.second;
const Vec3& locationJ = *item.first;
// Ignore self hits
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