[cmake-commits] hoffman committed cmGlobalGenerator.cxx 1.222 1.223

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Jan 31 12:19:02 EST 2008


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv18129

Modified Files:
	cmGlobalGenerator.cxx 
Log Message:
ENH: remove a const cast


Index: cmGlobalGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGlobalGenerator.cxx,v
retrieving revision 1.222
retrieving revision 1.223
diff -u -d -r1.222 -r1.223
--- cmGlobalGenerator.cxx	31 Jan 2008 03:56:34 -0000	1.222
+++ cmGlobalGenerator.cxx	31 Jan 2008 17:19:00 -0000	1.223
@@ -1911,7 +1911,7 @@
     for(cmGlobalGenerator::TargetDependSet::const_iterator i =
           tset.begin(); i != tset.end(); ++i)
       {
-      cmTarget* dtarget = const_cast<cmTarget*>(*i);
+      cmTarget* dtarget = *i;
       this->AddTargetDepends(dtarget, projectTargets);
       }
     }



More information about the Cmake-commits mailing list