summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Parser.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-10-11 21:22:59 +0000
committerMarc Laukien <marc@zeroc.com>2001-10-11 21:22:59 +0000
commit1a48a3674504885a89b3b25443ba719e80141ed4 (patch)
treeb2f1e2ab006d8b300a1a3db4831dd372eab48fc6 /cpp/src/Slice/Parser.cpp
parentmore fixes (diff)
downloadice-1a48a3674504885a89b3b25443ba719e80141ed4.tar.bz2
ice-1a48a3674504885a89b3b25443ba719e80141ed4.tar.xz
ice-1a48a3674504885a89b3b25443ba719e80141ed4.zip
slicified local exceptions
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r--cpp/src/Slice/Parser.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp
index 5711b83dc65..49728aadc20 100644
--- a/cpp/src/Slice/Parser.cpp
+++ b/cpp/src/Slice/Parser.cpp
@@ -876,7 +876,7 @@ Slice::Container::hasClassDefs()
}
bool
-Slice::Container::hasOtherConstructedTypes()
+Slice::Container::hasOtherConstructedOrExceptions()
{
for (ContainedList::const_iterator p = _contents.begin(); p != _contents.end(); ++p)
{
@@ -885,8 +885,13 @@ Slice::Container::hasOtherConstructedTypes()
return true;
}
+ if (ExceptionPtr::dynamicCast(*p))
+ {
+ return true;
+ }
+
ContainerPtr container = ContainerPtr::dynamicCast(*p);
- if (container && container->hasOtherConstructedTypes())
+ if (container && container->hasOtherConstructedOrExceptions())
{
return true;
}