summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentationFormatterUsage.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-10-09 13:55:42 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-10-09 13:55:42 (GMT)
commit18ce24c7486fedc792276721515c9ddefc62ebee (patch)
tree527cfa357957b02432cdabea88c918948ac6f37a /Source/cmDocumentationFormatterUsage.cxx
parentb02cbf5fadd70bf173882a1eca94e1d74d640248 (diff)
downloadCMake-18ce24c7486fedc792276721515c9ddefc62ebee.zip
CMake-18ce24c7486fedc792276721515c9ddefc62ebee.tar.gz
CMake-18ce24c7486fedc792276721515c9ddefc62ebee.tar.bz2
ENH: make documentation entries actually store their data
Diffstat (limited to 'Source/cmDocumentationFormatterUsage.cxx')
-rw-r--r--Source/cmDocumentationFormatterUsage.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmDocumentationFormatterUsage.cxx b/Source/cmDocumentationFormatterUsage.cxx
index d5f315a..b7660a9 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; ++op)
+ for(const cmDocumentationEntry* op = section; op->brief.size(); ++op)
{
- if(op->name)
+ if(op->name.size())
{
os << " " << op->name;
this->TextIndent = " ";
int align = static_cast<int>(strlen(this->TextIndent))-4;
- for(int i = static_cast<int>(strlen(op->name)); i < align; ++i)
+ for(int i = static_cast<int>(op->name.size()); i < align; ++i)
{
os << " ";
}
- if ( strlen(op->name) > strlen(this->TextIndent)-4 )
+ if ( op->name.size() > strlen(this->TextIndent)-4 )
{
os << "\n";
os.write(this->TextIndent, strlen(this->TextIndent)-2);
}
os << "= ";
- this->PrintColumn(os, op->brief);
+ this->PrintColumn(os, op->brief.c_str());
os << "\n";
}
else
{
os << "\n";
this->TextIndent = "";
- this->PrintFormatted(os, op->brief);
+ this->PrintFormatted(os, op->brief.c_str());
}
}
os << "\n";