diff options
author | Brad King <brad.king@kitware.com> | 2012-09-09 14:55:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-09 14:55:49 (GMT) |
commit | 4e62784bf6c00bc01fd21dc08cac84b260ec9c11 (patch) | |
tree | 20cff0ffbf66a82337945bd0c5cbf2fa5c208016 /Source/cmDocumentationFormatterDocbook.cxx | |
parent | 9ad85dbb25c0c9098f7fac276b5d27a636f1924f (diff) | |
download | CMake-4e62784bf6c00bc01fd21dc08cac84b260ec9c11.zip CMake-4e62784bf6c00bc01fd21dc08cac84b260ec9c11.tar.gz CMake-4e62784bf6c00bc01fd21dc08cac84b260ec9c11.tar.bz2 |
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.
Diffstat (limited to 'Source/cmDocumentationFormatterDocbook.cxx')
-rw-r--r-- | Source/cmDocumentationFormatterDocbook.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDocumentationFormatterDocbook.cxx b/Source/cmDocumentationFormatterDocbook.cxx index 9ff7847..a2ae20b 100644 --- a/Source/cmDocumentationFormatterDocbook.cxx +++ b/Source/cmDocumentationFormatterDocbook.cxx @@ -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, |