summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentationFormatterText.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-10-09 18:35:25 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-10-09 18:35:25 (GMT)
commit35e13b11f3cce42944e367543b082e7774201e50 (patch)
tree20d811344c7e488cebe7596016601eb71cc12014 /Source/cmDocumentationFormatterText.cxx
parent18ce24c7486fedc792276721515c9ddefc62ebee (diff)
downloadCMake-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/cmDocumentationFormatterText.cxx')
-rw-r--r--Source/cmDocumentationFormatterText.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmDocumentationFormatterText.cxx b/Source/cmDocumentationFormatterText.cxx
index 4051181..4ab2695 100644
--- a/Source/cmDocumentationFormatterText.cxx
+++ b/Source/cmDocumentationFormatterText.cxx
@@ -36,26 +36,26 @@ void cmDocumentationFormatterText::PrintSection(std::ostream& os,
os << name << "\n\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)
{
if(op->name[0])
{
os << " " << op->name << "\n";
}
this->TextIndent = " ";
- this->PrintFormatted(os, op->brief.c_str());
- if(op->full.size())
+ this->PrintFormatted(os, op->brief);
+ if(op->full)
{
os << "\n";
- this->PrintFormatted(os, op->full.c_str());
+ this->PrintFormatted(os, op->full);
}
}
else
{
this->TextIndent = "";
- this->PrintFormatted(os, op->brief.c_str());
+ this->PrintFormatted(os, op->brief);
}
os << "\n";
}