summaryrefslogtreecommitdiff
path: root/TAO/tao/Exception.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-14 22:12:14 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-14 22:12:14 +0000
commit24772c23f1fed28b0d1b50bd176e238181b86260 (patch)
tree54fd8630909a4af25df87e1a9c74abd2750c6bb8 /TAO/tao/Exception.cpp
parenta36e5e789e00271c65c4ef043631a8ebf8f3d27e (diff)
downloadATCD-24772c23f1fed28b0d1b50bd176e238181b86260.tar.gz
ChangeLogTag:Tue Apr 14 16:37:50 1998 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Exception.cpp')
-rw-r--r--TAO/tao/Exception.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/TAO/tao/Exception.cpp b/TAO/tao/Exception.cpp
index c000f68ffaa..161c56c6699 100644
--- a/TAO/tao/Exception.cpp
+++ b/TAO/tao/Exception.cpp
@@ -15,7 +15,8 @@
#endif /* __ACE_INLINE__ */
// Static initializers.
-CORBA::TypeCode_ptr TAO_Exceptions::sys_exceptions[TAO_Exceptions::NUM_SYS_EXCEPTIONS];
+CORBA::TypeCode_ptr
+TAO_Exceptions::sys_exceptions[TAO_Exceptions::NUM_SYS_EXCEPTIONS];
CORBA::ExceptionList TAO_Exceptions::system_exceptions;
@@ -324,7 +325,9 @@ TAO_Exceptions::make_standard_typecode (CORBA::TypeCode_ptr tcp,
// a TypeCode, saving it away in the list of ones that the ORB will
// always accept as part of any operation response!
- sys_exceptions [TAO_Exceptions::system_exceptions.length++] =
+ int l = TAO_Exceptions::system_exceptions.length ();
+ TAO_Exceptions::system_exceptions.length (l + 1);
+ TAO_Exceptions::sys_exceptions [l] =
new (tcp) CORBA::TypeCode (CORBA::tk_except,
stream.length (),
stream.buffer (),
@@ -385,11 +388,9 @@ TAO_Exceptions::init_standard_exceptions (CORBA::Environment &env)
{
// Initialize the list of system exceptions, used when
// unmarshaling.
- TAO_Exceptions::system_exceptions.length = 0;
- TAO_Exceptions::system_exceptions.maximum =
- TAO_Exceptions::NUM_SYS_EXCEPTIONS;
- TAO_Exceptions::system_exceptions.buffer =
- &TAO_Exceptions::sys_exceptions [0];
+ TAO_Exceptions::system_exceptions =
+ CORBA::ExceptionList (TAO_Exceptions::NUM_SYS_EXCEPTIONS, 0,
+ TAO_Exceptions::sys_exceptions);
// Initialize the typecodes.
#define TAO_SYSTEM_EXCEPTION(name) \