diff options
author | gokhale <asgokhale@users.noreply.github.com> | 1997-11-20 05:05:02 +0000 |
---|---|---|
committer | gokhale <asgokhale@users.noreply.github.com> | 1997-11-20 05:05:02 +0000 |
commit | 4c361e84c93ec9caf83e2b5538d84c9ab7720645 (patch) | |
tree | bdd910e621782f422d19051747f8c056a55c48a6 /TAO/TAO_IDL | |
parent | 5a80da0f19db5234c0d8b61e711af69cfe270b70 (diff) | |
download | ATCD-4c361e84c93ec9caf83e2b5538d84c9ab7720645.tar.gz |
fixed strings as return values
CVS:
CVS:
Diffstat (limited to 'TAO/TAO_IDL')
-rw-r--r-- | TAO/TAO_IDL/be/be_state_operation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TAO/TAO_IDL/be/be_state_operation.cpp b/TAO/TAO_IDL/be/be_state_operation.cpp index 7ad79ff0b9a..bd6894d4d1c 100644 --- a/TAO/TAO_IDL/be/be_state_operation.cpp +++ b/TAO/TAO_IDL/be/be_state_operation.cpp @@ -338,17 +338,17 @@ be_state_operation::gen_code (be_type *bt, be_decl *d, be_type *type) { if (bt->node_type () == AST_Decl::NT_typedef) { - *os << bt->name () << " retval;" << nl; + *os << bt->name () << " *retval = new " << bt->name () << "*;" << nl; } else { - *os << "char *retval;" << nl; + *os << "char **retval = new char*;" << nl; } } break; case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS: { - *os << "retval"; + *os << "*retval"; } break; case TAO_CodeGen::TAO_OPERATION_RESULT_SS: |