diff options
author | Michi Henning <michi@zeroc.com> | 2007-12-20 13:20:29 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2007-12-20 13:20:29 +1000 |
commit | 4285cce5116a52af08f0d883d65440d08ecee1eb (patch) | |
tree | 75e8a565b4d10521e744ccf541f56439c5cd65a4 /cpp/src/slice2html/Gen.cpp | |
parent | Bug 2477. (diff) | |
download | ice-4285cce5116a52af08f0d883d65440d08ecee1eb.tar.bz2 ice-4285cce5116a52af08f0d883d65440d08ecee1eb.tar.xz ice-4285cce5116a52af08f0d883d65440d08ecee1eb.zip |
Fix to changes for bug 2477.
Diffstat (limited to 'cpp/src/slice2html/Gen.cpp')
-rw-r--r-- | cpp/src/slice2html/Gen.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/cpp/src/slice2html/Gen.cpp b/cpp/src/slice2html/Gen.cpp index 8a946ca2dfc..649e46a0ef4 100644 --- a/cpp/src/slice2html/Gen.cpp +++ b/cpp/src/slice2html/Gen.cpp @@ -2106,15 +2106,15 @@ Slice::ModuleGenerator::visitContainer(const ContainerPtr& p) assert(_out.currIndent() == indent); - EnumList enums = p->enums(); + ConstList consts = p->consts(); - if(!enums.empty()) + if(!consts.empty()) { start("h2"); - _out << "Enumeration Index"; + _out << "Constant Index"; end(); start("dl"); - for(EnumList::const_iterator q = enums.begin(); q != enums.end(); ++q) + for(ConstList::const_iterator q = consts.begin(); q != consts.end(); ++q) { start("dt", "Symbol"); _out << toString(*q, p, false, true); @@ -2127,15 +2127,17 @@ Slice::ModuleGenerator::visitContainer(const ContainerPtr& p) end(); } - ConstList consts = p->consts(); + assert(_out.currIndent() == indent); - if(!consts.empty()) + EnumList enums = p->enums(); + + if(!enums.empty()) { start("h2"); - _out << "Constant Index"; + _out << "Enumeration Index"; end(); start("dl"); - for(ConstList::const_iterator q = consts.begin(); q != consts.end(); ++q) + for(EnumList::const_iterator q = enums.begin(); q != enums.end(); ++q) { start("dt", "Symbol"); _out << toString(*q, p, false, true); |