mirror of
https://github.com/reactos/CMake.git
synced 2025-01-20 02:12:35 +00:00
docbook: Fix formatter naming convention to avoid shadow
Some compilers complain: cmDocumentationFormatterDocbook.cxx: In member function virtual void cmDocumentationFormatterDocbook::PrintHeader(const char*, const char*, std::ostream&): cmDocumentationFormatterDocbook.cxx:197:73: warning: declaration of docname shadows a member of 'this' [-Wshadow] Fix the name of the member variable.
This commit is contained in:
parent
9ad85dbb25
commit
4e62784bf6
@ -196,7 +196,7 @@ void cmDocumentationFormatterDocbook
|
||||
void cmDocumentationFormatterDocbook
|
||||
::PrintHeader(const char* docname, const char* appname, std::ostream& os)
|
||||
{
|
||||
this->docname = docname;
|
||||
this->Docname = docname;
|
||||
|
||||
// this one is used to ensure that we don't create multiple link targets
|
||||
// with the same name. We can clear it here since we are at the
|
||||
@ -229,7 +229,7 @@ void cmDocumentationFormatterDocbook
|
||||
{
|
||||
id = std::string(prefix) + "." + id;
|
||||
}
|
||||
os << this->docname << '.' << id;
|
||||
os << this->Docname << '.' << id;
|
||||
|
||||
// make sure that each id exists only once. Since it seems
|
||||
// not easily possible to determine which link refers to which id,
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
private:
|
||||
void PrintId(std::ostream& os, const char* prefix, std::string id);
|
||||
std::set<std::string> EmittedLinkIds;
|
||||
std::string docname;
|
||||
std::string Docname;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user