COMP: fix a problem with a shadowed var
This commit is contained in:
parent
5c8401f72e
commit
8b76142f00
@ -823,9 +823,8 @@ void cmDocumentation::PrependSection(const char *name,
|
|||||||
cmDocumentationSection *sec = 0;
|
cmDocumentationSection *sec = 0;
|
||||||
if (this->AllSections.find(name) == this->AllSections.end())
|
if (this->AllSections.find(name) == this->AllSections.end())
|
||||||
{
|
{
|
||||||
cmDocumentationSection *sec =
|
sec = new cmDocumentationSection
|
||||||
new cmDocumentationSection(name,
|
(name, cmSystemTools::UpperCase(name).c_str());
|
||||||
cmSystemTools::UpperCase(name).c_str());
|
|
||||||
this->SetSection(name,sec);
|
this->SetSection(name,sec);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -842,9 +841,8 @@ void cmDocumentation::AppendSection(const char *name,
|
|||||||
cmDocumentationSection *sec = 0;
|
cmDocumentationSection *sec = 0;
|
||||||
if (this->AllSections.find(name) == this->AllSections.end())
|
if (this->AllSections.find(name) == this->AllSections.end())
|
||||||
{
|
{
|
||||||
cmDocumentationSection *sec =
|
sec = new cmDocumentationSection
|
||||||
new cmDocumentationSection(name,
|
(name, cmSystemTools::UpperCase(name).c_str());
|
||||||
cmSystemTools::UpperCase(name).c_str());
|
|
||||||
this->SetSection(name,sec);
|
this->SetSection(name,sec);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -861,9 +859,8 @@ void cmDocumentation::AppendSection(const char *name,
|
|||||||
cmDocumentationSection *sec = 0;
|
cmDocumentationSection *sec = 0;
|
||||||
if (this->AllSections.find(name) == this->AllSections.end())
|
if (this->AllSections.find(name) == this->AllSections.end())
|
||||||
{
|
{
|
||||||
cmDocumentationSection *sec =
|
sec = new cmDocumentationSection
|
||||||
new cmDocumentationSection(name,
|
(name, cmSystemTools::UpperCase(name).c_str());
|
||||||
cmSystemTools::UpperCase(name).c_str());
|
|
||||||
this->SetSection(name,sec);
|
this->SetSection(name,sec);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user