diff --git a/Source/cmDependsC.cxx b/Source/cmDependsC.cxx index a98458bae..29254e60b 100644 --- a/Source/cmDependsC.cxx +++ b/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::const_iterator incIt= + for (std::vector::const_iterator incIt= fileIt->second->m_UnscannedEntries.begin(); incIt!=fileIt->second->m_UnscannedEntries.end(); ++incIt) { @@ -282,7 +282,7 @@ void cmDependsC::WriteCacheFile() const { cacheOut<first.c_str()<::const_iterator + for (std::vector::const_iterator incIt=fileIt->second->m_UnscannedEntries.begin(); incIt!=fileIt->second->m_UnscannedEntries.end(); ++incIt) { diff --git a/Source/cmDependsC.h b/Source/cmDependsC.h index ec34934d3..687131d61 100644 --- a/Source/cmDependsC.h +++ b/Source/cmDependsC.h @@ -78,7 +78,7 @@ public: struct cmIncludeLines { cmIncludeLines(): m_Used(false) {} - std::list m_UnscannedEntries; + std::vector m_UnscannedEntries; bool m_Used; }; protected: