summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraEclipseCDT4Generator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-01-21 15:43:47 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-01-22 20:28:41 (GMT)
commitbf1e1bf1d0a8a966af0c8e454d0bc11b5ed874e1 (patch)
treeb8e129e96d5445f48e1aac07bab6a532e735c688 /Source/cmExtraEclipseCDT4Generator.cxx
parent01d7ceda5dda53125da2bce994114ca5154bf365 (diff)
downloadCMake-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/cmExtraEclipseCDT4Generator.cxx')
-rw-r--r--Source/cmExtraEclipseCDT4Generator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx
index 3e9b786..33e76cd 100644
--- a/Source/cmExtraEclipseCDT4Generator.cxx
+++ b/Source/cmExtraEclipseCDT4Generator.cxx
@@ -567,9 +567,9 @@ void cmExtraEclipseCDT4Generator::CreateLinksForTargets(
{
// Add the file to the list of sources.
std::string source = (*sfIt)->GetFullPath();
- cmSourceGroup& sourceGroup =
+ cmSourceGroup* sourceGroup =
makefile->FindSourceGroup(source.c_str(), sourceGroups);
- sourceGroup.AssignSource(*sfIt);
+ sourceGroup->AssignSource(*sfIt);
}
for(std::vector<cmSourceGroup>::iterator sgIt = sourceGroups.begin();