]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/clipping.cpp
Use C++11 features with containers
[libs/gl.git] / source / core / clipping.cpp
index 79e1aaf06a149912e0bef36e3ab54583bbcf0993..d23ecffc0c2549c5eb2d3fe837213a63e99b337e 100644 (file)
@@ -26,7 +26,7 @@ void Clipping::attach(const ClipPlane &p)
 
 void Clipping::detach(const ClipPlane &p)
 {
-       vector<AttachedPlane>::iterator i = find_member(planes, &p, &AttachedPlane::plane);
+       auto i = find_member(planes, &p, &AttachedPlane::plane);
        if(i!=planes.end())
                planes.erase(i);
 }