Browse Source

ENH: try to fix hp build problem

Bill Hoffman 20 years ago
parent
commit
90bdb216a4
2 changed files with 3 additions and 3 deletions
  1. 2 2
      Source/cmDependsC.cxx
  2. 1 1
      Source/cmDependsC.h

+ 2 - 2
Source/cmDependsC.cxx

@@ -159,7 +159,7 @@ bool cmDependsC::WriteDependencies(const char *src, const char *obj,
         {
         fileIt->second->m_Used=true;
         dependencies.insert(fullName);
-        for (std::list<UnscannedEntry>::const_iterator incIt=
+        for (std::vector<UnscannedEntry>::const_iterator incIt=
                fileIt->second->m_UnscannedEntries.begin(); 
              incIt!=fileIt->second->m_UnscannedEntries.end(); ++incIt)
           {
@@ -282,7 +282,7 @@ void cmDependsC::WriteCacheFile() const
       {
       cacheOut<<fileIt->first.c_str()<<std::endl;
       
-      for (std::list<UnscannedEntry>::const_iterator
+      for (std::vector<UnscannedEntry>::const_iterator
              incIt=fileIt->second->m_UnscannedEntries.begin(); 
            incIt!=fileIt->second->m_UnscannedEntries.end(); ++incIt)
         {

+ 1 - 1
Source/cmDependsC.h

@@ -78,7 +78,7 @@ public:
   struct cmIncludeLines
   {
     cmIncludeLines(): m_Used(false) {}
-    std::list<UnscannedEntry> m_UnscannedEntries;
+    std::vector<UnscannedEntry> m_UnscannedEntries;
     bool m_Used;
   };
 protected: