diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-05-04 17:18:21 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-05-04 17:18:21 +0000 |
commit | fe0ce34c66453f87c7714a6458cffea456f24c5b (patch) | |
tree | fb4cbdb5fa122d61c9c62561e1e8aa4976e3428a /TAO/tests/Param_Test/ub_wstr_seq.cpp | |
parent | 01258e72d4ef3bb0ad93b576607c16335331b49c (diff) | |
download | ATCD-fe0ce34c66453f87c7714a6458cffea456f24c5b.tar.gz |
ChangeLogTag: Fri May 4 12:08:55 2001 Jeff Parsons <parsons@cs.wustl.edu>
Diffstat (limited to 'TAO/tests/Param_Test/ub_wstr_seq.cpp')
-rw-r--r-- | TAO/tests/Param_Test/ub_wstr_seq.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/TAO/tests/Param_Test/ub_wstr_seq.cpp b/TAO/tests/Param_Test/ub_wstr_seq.cpp index 8e10a5004b4..c609165f1d1 100644 --- a/TAO/tests/Param_Test/ub_wstr_seq.cpp +++ b/TAO/tests/Param_Test/ub_wstr_seq.cpp @@ -82,26 +82,19 @@ Test_WString_Sequence::init_parameters (Param_Test_ptr , { Generator *gen = GENERATOR::instance (); // value generator - const CORBA::WChar *choiceList[3]; - CORBA::ULong i = 0; - - for (i = 0; i < 3; i++) - { - choiceList[i] = gen->gen_wstring (); - } - - CORBA::ULong len = sizeof(choiceList)/sizeof(CORBA::WChar *) - 1; + CORBA::ULong len = 2; // set the length of the sequences this->in_->length (len); this->inout_->length (len); // now set each individual element - for (i = 0; i < this->in_->length (); i++) + for (CORBA::ULong i = 0; i < this->in_->length (); i++) { - this->in_[i] = choiceList[i]; - this->inout_[i] = choiceList[i+1]; + this->in_[i] = gen->gen_wstring (); + this->inout_[i] = gen->gen_wstring (); } + return 0; } |