diff options
author | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-02-27 12:44:34 +0000 |
---|---|---|
committer | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-02-27 12:44:34 +0000 |
commit | c055cc784d555c3582004b25a2e02a980bac109a (patch) | |
tree | e1d99963a386c295eadc169bbf8be88777c8cbc9 /TAO/examples | |
parent | 32ecb3c4cee6a029e9c7bcb0a9d64248d8ff1f20 (diff) | |
download | ATCD-c055cc784d555c3582004b25a2e02a980bac109a.tar.gz |
ChangeLogTag: Tue Feb 27 12:41:52 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'TAO/examples')
-rw-r--r-- | TAO/examples/TypeCode_Creation/main.cpp | 4 | ||||
-rw-r--r-- | TAO/examples/TypeCode_Creation/test.idl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/TAO/examples/TypeCode_Creation/main.cpp b/TAO/examples/TypeCode_Creation/main.cpp index bf1953fdf8b..08e9bc9baa3 100644 --- a/TAO/examples/TypeCode_Creation/main.cpp +++ b/TAO/examples/TypeCode_Creation/main.cpp @@ -35,7 +35,7 @@ int main(int argc, char *argv[]) // Not needed for ORB-created typecodes // (see CORBA 2.4.2 section 10.7.3). foo_members[0].type_def = CORBA::IDLType::_nil (); - CORBA::Short label_value = -3; + CORBA::Short label_value = 3; foo_members[0].label <<= label_value; foo_members[1].name = CORBA::string_dup ("foo_str_member"); @@ -47,7 +47,7 @@ int main(int argc, char *argv[]) foo_members[2].name = CORBA::string_dup ("foo_str_member"); foo_members[2].type = CORBA::TypeCode::_duplicate (CORBA::_tc_string); foo_members[2].type_def = CORBA::IDLType::_nil (); - label_value = -1; + label_value = 1; foo_members[2].label <<= label_value; // The default member. diff --git a/TAO/examples/TypeCode_Creation/test.idl b/TAO/examples/TypeCode_Creation/test.idl index 5633d769d46..e8fda6b204f 100644 --- a/TAO/examples/TypeCode_Creation/test.idl +++ b/TAO/examples/TypeCode_Creation/test.idl @@ -12,9 +12,9 @@ interface iface {}; union foo switch (short) { - case -3: + case 3: case 4: - case -1: string foo_str_member; + case 1: string foo_str_member; default: iface foo_iface_member; case 0: iface foo_iface_member2; }; |