Browse Source

ENH: remove a const cast

Bill Hoffman 18 years ago
parent
commit
48b554dee8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmGlobalGenerator.cxx

+ 1 - 1
Source/cmGlobalGenerator.cxx

@@ -1911,7 +1911,7 @@ cmGlobalGenerator::AddTargetDepends(cmTarget* target,
     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);
       }
     }