diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-01-21 15:43:47 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-01-22 20:28:41 (GMT) |
commit | bf1e1bf1d0a8a966af0c8e454d0bc11b5ed874e1 (patch) | |
tree | b8e129e96d5445f48e1aac07bab6a532e735c688 /Source/cmLocalVisualStudio6Generator.cxx | |
parent | 01d7ceda5dda53125da2bce994114ca5154bf365 (diff) | |
download | CMake-bf1e1bf1d0a8a966af0c8e454d0bc11b5ed874e1.zip CMake-bf1e1bf1d0a8a966af0c8e454d0bc11b5ed874e1.tar.gz CMake-bf1e1bf1d0a8a966af0c8e454d0bc11b5ed874e1.tar.bz2 |
cmMakefile: Make FindSourceGroup const.
Return a pointer instead of a reference. This allows making the accessor
const with the least impact.
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index fb12521..a5e8294 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -324,9 +324,9 @@ void cmLocalVisualStudio6Generator::WriteDSPFile(std::ostream& fout, { // Add the file to the list of sources. std::string source = (*i)->GetFullPath(); - cmSourceGroup& sourceGroup = + cmSourceGroup* sourceGroup = this->Makefile->FindSourceGroup(source.c_str(), sourceGroups); - sourceGroup.AssignSource(*i); + sourceGroup->AssignSource(*i); // while we are at it, if it is a .rule file then for visual studio 6 we // must generate it if ((*i)->GetPropertyAsBool("__CMAKE_RULE")) |