summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentationFormatterMan.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/cmDocumentationFormatterMan.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/cmDocumentationFormatterMan.cxx')
-rw-r--r--Source/cmDocumentationFormatterMan.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmDocumentationFormatterMan.cxx b/Source/cmDocumentationFormatterMan.cxx
index 0a16b9f..9699deb 100644
--- a/Source/cmDocumentationFormatterMan.cxx
+++ b/Source/cmDocumentationFormatterMan.cxx
@@ -35,19 +35,19 @@ void cmDocumentationFormatterMan::PrintSection(std::ostream& os,
os << ".SH " << 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 << ".TP\n"
<< ".B " << (op->name[0]?op->name:"*") << "\n";
- this->PrintFormatted(os, op->brief);
- this->PrintFormatted(os, op->full);
+ this->PrintFormatted(os, op->brief.c_str());
+ this->PrintFormatted(os, op->full.c_str());
}
else
{
os << ".PP\n";
- this->PrintFormatted(os, op->brief);
+ this->PrintFormatted(os, op->brief.c_str());
}
}
}