summaryrefslogtreecommitdiffstats
path: root/Source/cmMakeDepend.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-04-18 12:01:56 (GMT)
committerBrad King <brad.king@kitware.com>2001-04-18 12:01:56 (GMT)
commit57c4325c7dc3a19dea5276f9ab92647d42a3d43a (patch)
tree2b3ac8558d760dd01faa4c9b4b6abfd78c1bbca7 /Source/cmMakeDepend.cxx
parentc025838c73891917fbc4affc298476cba246b0f9 (diff)
downloadCMake-57c4325c7dc3a19dea5276f9ab92647d42a3d43a.zip
CMake-57c4325c7dc3a19dea5276f9ab92647d42a3d43a.tar.gz
CMake-57c4325c7dc3a19dea5276f9ab92647d42a3d43a.tar.bz2
ERR: We can't assume a vector iterator is a pointer. It must be dereferenced to get a reference to the element, and then we can take the address of that to get a pointer. "i" becomes "&*i"
Diffstat (limited to 'Source/cmMakeDepend.cxx')
-rw-r--r--Source/cmMakeDepend.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx
index fef088e..68cbe73 100644
--- a/Source/cmMakeDepend.cxx
+++ b/Source/cmMakeDepend.cxx
@@ -68,7 +68,7 @@ void cmMakeDepend::SetMakefile(cmMakefile* makefile)
info->m_FullPath = this->FullPath(i->m_FullPath.c_str());
this->AddFileToSearchPath(info->m_FullPath.c_str());
info->m_IncludeName = i->m_FullPath;
- info->m_ClassFileIndex = i;
+ info->m_ClassFileIndex = &*i;
m_DependInformation.push_back(info);
}
}