Procházet zdrojové kódy

FIX: Const reference to a set needs a const_iterator. (.NET build error)

Jim Miller před 24 roky
rodič
revize
de44f1faac
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Source/cmTarget.cxx

+ 1 - 1
Source/cmTarget.cxx

@@ -247,7 +247,7 @@ cmTarget::AnalyzeLibDependencies( const cmMakefile& mf )
     if( dep_map.find(lib->first) != dep_map.end() ) // does it have dependencies?
     if( dep_map.find(lib->first) != dep_map.end() ) // does it have dependencies?
       {
       {
       const std::set<cmStdString>& dep_on = dep_map.find( lib->first )->second;
       const std::set<cmStdString>& dep_on = dep_map.find( lib->first )->second;
-      std::set<cmStdString>::iterator i;
+      std::set<cmStdString>::const_iterator i;
       for( i = dep_on.begin(); i != dep_on.end(); ++i )
       for( i = dep_on.begin(); i != dep_on.end(); ++i )
         {
         {
         if( satisfied[lib->first].end() == satisfied[lib->first].find( *i ) )
         if( satisfied[lib->first].end() == satisfied[lib->first].find( *i ) )