]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/lighting.cpp
Use C++11 features with containers
[libs/gl.git] / source / materials / lighting.cpp
index 699aabc02c7daa8679d60b2ab6fd8eaf8d99723b..91bc4d064b5afaef528057a2a654f2e8a11f7197 100644 (file)
@@ -74,7 +74,7 @@ void Lighting::attach(const Light &l)
 
 void Lighting::detach(const Light &l)
 {
-       vector<AttachedLight>::iterator i = find_member(lights, &l, &AttachedLight::light);
+       auto i = find_member(lights, &l, &AttachedLight::light);
        if(i!=lights.end())
                lights.erase(i);
 }