浏览代码

ENH: try to fix hp build problem

Bill Hoffman 20 年之前
父节点
当前提交
90bdb216a4
共有 2 个文件被更改,包括 3 次插入3 次删除
  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: