summaryrefslogtreecommitdiffstats
path: root/src/mangen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mangen.cpp')
-rw-r--r--src/mangen.cpp26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/mangen.cpp b/src/mangen.cpp
index ec3eff1..8364d65 100644
--- a/src/mangen.cpp
+++ b/src/mangen.cpp
@@ -536,32 +536,30 @@ void ManGenerator::endMemberGroup(bool)
firstCol=FALSE;
}
-void ManGenerator::startSection(const char *,const char *,bool sub)
+void ManGenerator::startSection(const char *,const char *,SectionInfo::SectionType type)
{
if( !inHeader )
{
- if( sub )
+ switch(type)
{
- startMemberHeader();
- }
- else
- {
- startGroupHeader();
+ case SectionInfo::Page: startGroupHeader(); break;
+ case SectionInfo::Section: startGroupHeader(); break;
+ case SectionInfo::Subsection: startMemberHeader(); break;
+ default: ASSERT(0); break;
}
}
}
-void ManGenerator::endSection(const char *,bool sub)
+void ManGenerator::endSection(const char *,SectionInfo::SectionType type)
{
if( !inHeader )
{
- if( sub )
- {
- endMemberHeader();
- }
- else
+ switch(type)
{
- endGroupHeader();
+ case SectionInfo::Page: endGroupHeader(); break;
+ case SectionInfo::Section: endGroupHeader(); break;
+ case SectionInfo::Subsection: endMemberHeader(); break;
+ default: ASSERT(0); break;
}
}
else