diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-11 21:22:59 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-11 21:22:59 +0000 |
commit | 1a48a3674504885a89b3b25443ba719e80141ed4 (patch) | |
tree | b2f1e2ab006d8b300a1a3db4831dd372eab48fc6 /cpp/src/Slice/Parser.cpp | |
parent | more fixes (diff) | |
download | ice-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.cpp | 9 |
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; } |