diff options
Diffstat (limited to 'TAO/tao/corbafwd.i')
-rw-r--r-- | TAO/tao/corbafwd.i | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/TAO/tao/corbafwd.i b/TAO/tao/corbafwd.i index 60b8773438a..325a5637b3c 100644 --- a/TAO/tao/corbafwd.i +++ b/TAO/tao/corbafwd.i @@ -5,17 +5,11 @@ ACE_INLINE char * CORBA::string_alloc (CORBA::ULong len) { // Allocate 1 + strlen to accomodate the null terminating character. - - char *s = 0; - ACE_NEW_RETURN (s, - char[size_t (len + 1)], - 0); - - return s; + return new CORBA::Char[size_t (len + 1)]; } ACE_INLINE void -CORBA::string_free (char *str) +CORBA::string_free (CORBA::Char *str) { delete [] str; } @@ -23,12 +17,7 @@ CORBA::string_free (char *str) ACE_INLINE CORBA::WChar* CORBA::wstring_alloc (CORBA::ULong len) { - CORBA::WChar *s = 0; - ACE_NEW_RETURN (s, - CORBA::WChar [(size_t) (len + 1)], - 0); - - return s; + return new CORBA::WChar [(size_t) (len + 1)]; } ACE_INLINE void |