summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_structure.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-18 00:34:19 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-18 00:34:19 +0000
commitad6d4cd0ea9184f72e31e540f4d4055e7748b22c (patch)
tree1180dcc92c6a4a3a4af8f968b8f0e4b340484f28 /TAO/TAO_IDL/be/be_structure.cpp
parent2c7d3239d15080721ada3083b9e1aa7f4e3d83f8 (diff)
downloadATCD-ad6d4cd0ea9184f72e31e540f4d4055e7748b22c.tar.gz
Chnages necessary to handle skipped scope repeated name example for all
data types that presented a problem.
Diffstat (limited to 'TAO/TAO_IDL/be/be_structure.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_structure.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/TAO/TAO_IDL/be/be_structure.cpp b/TAO/TAO_IDL/be/be_structure.cpp
index 99a9f4bd793..c6674828b11 100644
--- a/TAO/TAO_IDL/be/be_structure.cpp
+++ b/TAO/TAO_IDL/be/be_structure.cpp
@@ -206,7 +206,7 @@ be_structure::gen_var_impl (char *,
ACE_OS::sprintf (fname, "%s_var", this->full_name ());
ACE_OS::memset (lname, '\0', NAMEBUFSIZE);
- ACE_OS::sprintf (lname, "%s_var", local_name ()->get_string ());
+ ACE_OS::sprintf (lname, "%s_var", this->local_name ()->get_string ());
// retrieve a singleton instance of the code generator
TAO_CodeGen *cg = TAO_CODEGEN::instance ();
@@ -230,8 +230,8 @@ be_structure::gen_var_impl (char *,
// constr from a pointer
ci->indent ();
*ci << "ACE_INLINE" << nl;
- *ci << fname << "::" << lname << " (" << ACE_GLOBAL_COLONS
- << this->name () << " *p)" << nl;
+ *ci << fname << "::" << lname << " (" << this->local_name ()
+ << " *p)" << nl;
*ci << " : ptr_ (p)" << nl;
*ci << "{}\n\n";
@@ -278,8 +278,8 @@ be_structure::gen_var_impl (char *,
// assignment operator from a pointer
ci->indent ();
*ci << "ACE_INLINE " << fname << " &" << nl;
- *ci << fname << "::operator= (" << ACE_GLOBAL_COLONS
- << this->name () << " *p)" << nl;
+ *ci << fname << "::operator= (" << this->local_name ()
+ << " *p)" << nl;
*ci << "{\n";
ci->incr_indent ();
*ci << "delete this->ptr_;" << nl;
@@ -595,7 +595,7 @@ be_structure::gen_out_impl (char *,
// constructor from _var &
ci->indent ();
*ci << "ACE_INLINE" << nl;
- *ci << fname << "::" << lname << " (" << "::" << this->name ()
+ *ci << fname << "::" << lname << " (" << this->local_name ()
<< "_var &p) // constructor from _var" << nl;
*ci << " : ptr_ (p.out ())" << nl;
*ci << "{\n";
@@ -610,7 +610,7 @@ be_structure::gen_out_impl (char *,
*ci << "ACE_INLINE" << nl;
*ci << fname << "::" << lname << " (const ::" << fname
<< " &p) // copy constructor" << nl;
- *ci << " : ptr_ (ACE_const_cast (::" << fname << "&,p).ptr_)" << nl;
+ *ci << " : ptr_ (ACE_const_cast (" << lname << "&, p).ptr_)" << nl;
*ci << "{}\n\n";
// assignment operator from _out &
@@ -620,7 +620,7 @@ be_structure::gen_out_impl (char *,
" &p)" << nl;
*ci << "{\n";
ci->incr_indent ();
- *ci << "this->ptr_ = ACE_const_cast (::" << fname << "&, p).ptr_;" << nl;
+ *ci << "this->ptr_ = ACE_const_cast (" << lname << "&, p).ptr_;" << nl;
*ci << "return *this;\n";
ci->decr_indent ();
*ci << "}\n\n";
@@ -630,8 +630,7 @@ be_structure::gen_out_impl (char *,
// assignment operator from pointer
ci->indent ();
*ci << "ACE_INLINE " << fname << " &" << nl;
- *ci << fname << "::operator= (" << "::" << this->name ()
- << " *p)" << nl;
+ *ci << fname << "::operator= (" << this->local_name () << " *p)" << nl;
*ci << "{\n";
ci->incr_indent ();
*ci << "this->ptr_ = p;" << nl;