diff options
author | Ken Martin <ken.martin@kitware.com> | 2007-10-09 18:35:25 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2007-10-09 18:35:25 (GMT) |
commit | 35e13b11f3cce42944e367543b082e7774201e50 (patch) | |
tree | 20d811344c7e488cebe7596016601eb71cc12014 /Source/cmDocumentationFormatterUsage.cxx | |
parent | 18ce24c7486fedc792276721515c9ddefc62ebee (diff) | |
download | CMake-35e13b11f3cce42944e367543b082e7774201e50.zip CMake-35e13b11f3cce42944e367543b082e7774201e50.tar.gz CMake-35e13b11f3cce42944e367543b082e7774201e50.tar.bz2 |
BUG: revert doc changes since VS7 cannot compile them, will implement them in a different manner
Diffstat (limited to 'Source/cmDocumentationFormatterUsage.cxx')
-rw-r--r-- | Source/cmDocumentationFormatterUsage.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmDocumentationFormatterUsage.cxx b/Source/cmDocumentationFormatterUsage.cxx index b7660a9..d5f315a 100644 --- a/Source/cmDocumentationFormatterUsage.cxx +++ b/Source/cmDocumentationFormatterUsage.cxx @@ -31,31 +31,31 @@ void cmDocumentationFormatterUsage::PrintSection(std::ostream& os, os << name << "\n"; } if(!section) { return; } - for(const cmDocumentationEntry* op = section; op->brief.size(); ++op) + for(const cmDocumentationEntry* op = section; op->brief; ++op) { - if(op->name.size()) + if(op->name) { os << " " << op->name; this->TextIndent = " "; int align = static_cast<int>(strlen(this->TextIndent))-4; - for(int i = static_cast<int>(op->name.size()); i < align; ++i) + for(int i = static_cast<int>(strlen(op->name)); i < align; ++i) { os << " "; } - if ( op->name.size() > strlen(this->TextIndent)-4 ) + if ( strlen(op->name) > strlen(this->TextIndent)-4 ) { os << "\n"; os.write(this->TextIndent, strlen(this->TextIndent)-2); } os << "= "; - this->PrintColumn(os, op->brief.c_str()); + this->PrintColumn(os, op->brief); os << "\n"; } else { os << "\n"; this->TextIndent = ""; - this->PrintFormatted(os, op->brief.c_str()); + this->PrintFormatted(os, op->brief); } } os << "\n"; |