Revision: 2784 http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2784&view=rev Author: ulteq Date: 2012-06-06 18:53:54 +0000 (Wed, 06 Jun 2012) Log Message: ----------- -Fix: removed lambda expression
Modified Paths: -------------- trunk/source/main/gfx/camera/CameraManager.cpp Modified: trunk/source/main/gfx/camera/CameraManager.cpp =================================================================== --- trunk/source/main/gfx/camera/CameraManager.cpp 2012-06-06 18:34:34 UTC (rev 2783) +++ trunk/source/main/gfx/camera/CameraManager.cpp 2012-06-06 18:53:54 UTC (rev 2784) @@ -63,7 +63,10 @@ CameraManager::~CameraManager() { - std::for_each(globalBehaviors.begin(), globalBehaviors.end(), [&](std::pair <int, IBehavior<CameraContext> *> p) { delete p.second; }); + for (std::map <int , IBehavior<CameraContext> *>::iterator it = globalBehaviors.begin(); it != globalBehaviors.end(); ++it) + { + delete it->second; + } globalBehaviors.clear(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Rigsofrods-devel mailing list Rigsofrods-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel