summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.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/cmVisualStudio10TargetGenerator.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/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index eee7c14..ed7e243 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -708,9 +708,9 @@ void cmVisualStudio10TargetGenerator::WriteGroups()
{
cmSourceFile* sf = *s;
std::string const& source = sf->GetFullPath();
- cmSourceGroup& sourceGroup =
+ cmSourceGroup* sourceGroup =
this->Makefile->FindSourceGroup(source.c_str(), sourceGroups);
- groupsUsed.insert(&sourceGroup);
+ groupsUsed.insert(sourceGroup);
}
this->AddMissingSourceGroups(groupsUsed, sourceGroups);
@@ -901,9 +901,9 @@ WriteGroupSources(const char* name,
{
cmSourceFile* sf = s->SourceFile;
std::string const& source = sf->GetFullPath();
- cmSourceGroup& sourceGroup =
+ cmSourceGroup* sourceGroup =
this->Makefile->FindSourceGroup(source.c_str(), sourceGroups);
- const char* filter = sourceGroup.GetFullName();
+ const char* filter = sourceGroup->GetFullName();
this->WriteString("<", 2);
std::string path = this->ConvertPath(source, s->RelativePath);
this->ConvertToWindowsSlash(path);