summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-10-23 14:07:40 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-10-23 14:07:40 (GMT)
commit8b76142f0003aa292bce7257496d7263d039033a (patch)
tree3beed134ac95d48d21a5470d59a12ebb691d6afe /Source/cmDocumentation.cxx
parent5c8401f72e041178944e4615c6070d42ebda4eb7 (diff)
downloadCMake-8b76142f0003aa292bce7257496d7263d039033a.zip
CMake-8b76142f0003aa292bce7257496d7263d039033a.tar.gz
CMake-8b76142f0003aa292bce7257496d7263d039033a.tar.bz2
COMP: fix a problem with a shadowed var
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r--Source/cmDocumentation.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 158e9c1..cde3223 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -823,9 +823,8 @@ void cmDocumentation::PrependSection(const char *name,
cmDocumentationSection *sec = 0;
if (this->AllSections.find(name) == this->AllSections.end())
{
- cmDocumentationSection *sec =
- new cmDocumentationSection(name,
- cmSystemTools::UpperCase(name).c_str());
+ sec = new cmDocumentationSection
+ (name, cmSystemTools::UpperCase(name).c_str());
this->SetSection(name,sec);
}
else
@@ -842,9 +841,8 @@ void cmDocumentation::AppendSection(const char *name,
cmDocumentationSection *sec = 0;
if (this->AllSections.find(name) == this->AllSections.end())
{
- cmDocumentationSection *sec =
- new cmDocumentationSection(name,
- cmSystemTools::UpperCase(name).c_str());
+ sec = new cmDocumentationSection
+ (name, cmSystemTools::UpperCase(name).c_str());
this->SetSection(name,sec);
}
else
@@ -861,9 +859,8 @@ void cmDocumentation::AppendSection(const char *name,
cmDocumentationSection *sec = 0;
if (this->AllSections.find(name) == this->AllSections.end())
{
- cmDocumentationSection *sec =
- new cmDocumentationSection(name,
- cmSystemTools::UpperCase(name).c_str());
+ sec = new cmDocumentationSection
+ (name, cmSystemTools::UpperCase(name).c_str());
this->SetSection(name,sec);
}
else