summaryrefslogtreecommitdiff
path: root/TAO/interop-tests
diff options
context:
space:
mode:
authorwilson_d <wilson_d@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-08-30 19:25:10 +0000
committerwilson_d <wilson_d@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-08-30 19:25:10 +0000
commit7910bb2de90e97a3256fcfa6ebd7d2a6ec9fa63a (patch)
tree2b13a96bd48a3f4f9de7c8965a4ed2c3a2394f87 /TAO/interop-tests
parent4d678de8431e3f11e2687e9123558b8881729ad9 (diff)
downloadATCD-7910bb2de90e97a3256fcfa6ebd7d2a6ec9fa63a.tar.gz
ChangeLogTag: Mon Aug 30 14:24:20 2004 Dale Wilson <wilson_d@ociweb.com>
Diffstat (limited to 'TAO/interop-tests')
-rw-r--r--TAO/interop-tests/wchar/interop_wchar_i.cpp25
1 files changed, 14 insertions, 11 deletions
diff --git a/TAO/interop-tests/wchar/interop_wchar_i.cpp b/TAO/interop-tests/wchar/interop_wchar_i.cpp
index b26bbed4c42..f69e9553565 100644
--- a/TAO/interop-tests/wchar/interop_wchar_i.cpp
+++ b/TAO/interop-tests/wchar/interop_wchar_i.cpp
@@ -105,7 +105,7 @@ interop_WChar_Passer_i::wstruct_to_server (const interop::wstruct & test,
ref_.match_wchar (key,test.st_char) &&
ref_.match_wstring (key,test.st_string) &&
ref_.match_warray (key,test.st_array) &&
- this->any_to_server (test.st_any,key);
+ this->any_to_server (test.st_any,key ACE_ENV_ARG_PARAMETER);
}
interop::wstruct *
@@ -113,26 +113,29 @@ interop_WChar_Passer_i::wstruct_from_server (CORBA::Short key
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC (( CORBA::SystemException ))
{
- interop::wstruct *ws = new interop::wstruct ();
- ws->st_char = this->wchar_from_server(key);
- ws->st_string = this->wstring_from_server(key);
+ interop::wstruct_var ws = new interop::wstruct ();
+ ws->st_char = this->wchar_from_server(key ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN (interop::wstruct.nil ());
+ ws->st_string = this->wstring_from_server(key ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN (interop::wstruct.nil ());
ref_.assign_warray (key, ws->st_array);
ws->st_any <<= ref_.get_wstring(key);
- return ws;
+ return ws._retn ();
}
+
CORBA::Boolean
interop_WChar_Passer_i::wstructseq_to_server (const interop::wstructseq & test,
CORBA::Short key
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC (( CORBA::SystemException ))
{
- for (CORBA::ULong i = 0; i < test.length(); i++)
+ CORBA::Boolean result = 1;
+ for (CORBA::ULong i = 0; result && i < test.length(); i++)
{
- if (!this->wstruct_to_server(test[i], key))
- return false;
+ result = this->wstruct_to_server(test[i], key);
+ ACE_CHECK_RETURN (0);
}
-
- return true;
+ return result;
}
interop::wstructseq *
@@ -259,7 +262,7 @@ interop_WChar_Passer_i::exception_test ( CORBA::Short key
interop::WChar_Passer::WStringException))
{
ACE_THROW (interop::WChar_Passer::WStringException(ref_.get_except(key),
- this->wchar_from_server(key)));
+ this->wchar_from_server(key ACE_ENV_ARG_PARAMETER)));
}
void