summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2356_Regression
diff options
context:
space:
mode:
authorvzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-05-05 08:42:47 +0000
committervzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-05-05 08:42:47 +0000
commitd9f93d9c82d70546918515a81f125097f7869a85 (patch)
tree9417d3caa8fa8477d07e3590e6aa2eb7027007e5 /TAO/tests/Bug_2356_Regression
parente4ff53e866ae1a5fc99be7b1171936cef2c49f2b (diff)
downloadATCD-d9f93d9c82d70546918515a81f125097f7869a85.tar.gz
ChangeLogTag: Tue May 5 08:41:48 UTC 2009 Vladimir Zykov <vz@prismtech.com>
Diffstat (limited to 'TAO/tests/Bug_2356_Regression')
-rw-r--r--TAO/tests/Bug_2356_Regression/ami_test_i.cpp6
-rw-r--r--TAO/tests/Bug_2356_Regression/client.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/TAO/tests/Bug_2356_Regression/ami_test_i.cpp b/TAO/tests/Bug_2356_Regression/ami_test_i.cpp
index 3ca8d589a2c..3062427213a 100644
--- a/TAO/tests/Bug_2356_Regression/ami_test_i.cpp
+++ b/TAO/tests/Bug_2356_Regression/ami_test_i.cpp
@@ -31,10 +31,10 @@ AMI_Test_i::foo (CORBA::Long value)
ACE_DEBUG ((LM_DEBUG,
"Throwing Exception: A::DidTheRightThing\n"));
#if defined(ACE_HAS_WCHAR) || defined(ACE_HAS_XPG4_MULTIBYTE_CHAR)
- CORBA::WChar* wstring = CORBA::wstring_dup(L"Hello world");
+ CORBA::WChar const* wstring = L"Hello world";
#else
- CORBA::WChar empty[] = { 0 };
- CORBA::WChar* wstring = CORBA::wstring_dup(empty);
+ CORBA::WChar const empty[] = { 0 };
+ CORBA::WChar const* wstring = empty;
#endif
throw A::DidTheRightThing(42, wstring);
}
diff --git a/TAO/tests/Bug_2356_Regression/client.cpp b/TAO/tests/Bug_2356_Regression/client.cpp
index a6441e24e56..b57ce1c0573 100644
--- a/TAO/tests/Bug_2356_Regression/client.cpp
+++ b/TAO/tests/Bug_2356_Regression/client.cpp
@@ -91,10 +91,10 @@ public:
ACE_OS::strlen(ex.whatDidTheRightThing.in()) * sizeof(CORBA::WChar)
));
- CORBA::WChar* wstring = CORBA::wstring_dup(L"Hello world");
+ CORBA::WChar const* wstring = L"Hello world";
#else
- CORBA::WChar empty[] = { 0 };
- CORBA::WChar* wstring = CORBA::wstring_dup(empty);
+ CORBA::WChar const empty[] = { 0 };
+ CORBA::WChar const* wstring = empty;
#endif
if (ACE_OS::strcmp (wstring, ex.whatDidTheRightThing.in()) != 0)
{