summaryrefslogtreecommitdiffstats
path: root/src/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/context.cpp')
-rw-r--r--src/context.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/context.cpp b/src/context.cpp
index 40fa6ef..405d0b5 100644
--- a/src/context.cpp
+++ b/src/context.cpp
@@ -2751,7 +2751,9 @@ class NamespaceContext::Private : public DefinitionContext<NamespaceContext::Pri
ClassDef *cd;
for (sdi.toFirst();(cd=sdi.current());++sdi)
{
- if (sliceOpt && (cd->isStruct() || cd->isInterface() || cd->isException()))
+ if (sliceOpt && (cd->compoundType()==ClassDef::Struct ||
+ cd->compoundType()==ClassDef::Interface ||
+ cd->compoundType()==ClassDef::Exception))
{
continue; // These types appear in their own sections.
}