]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/lighting.cpp
Remove the misc.h header
[libs/gl.git] / source / materials / lighting.cpp
index 699aabc02c7daa8679d60b2ab6fd8eaf8d99723b..721d5cdca8593a131e0a82070648a7dc6c3082fa 100644 (file)
@@ -6,7 +6,6 @@
 #include "light.h"
 #include "lighting.h"
 #include "matrix.h"
-#include "misc.h"
 
 using namespace std;
 
@@ -74,7 +73,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);
 }