summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/ast/ast_predefined_type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/ast/ast_predefined_type.cpp')
-rw-r--r--TAO/TAO_IDL/ast/ast_predefined_type.cpp23
1 files changed, 3 insertions, 20 deletions
diff --git a/TAO/TAO_IDL/ast/ast_predefined_type.cpp b/TAO/TAO_IDL/ast/ast_predefined_type.cpp
index 0f45b9b9a34..ae9fb0a9493 100644
--- a/TAO/TAO_IDL/ast/ast_predefined_type.cpp
+++ b/TAO/TAO_IDL/ast/ast_predefined_type.cpp
@@ -76,10 +76,9 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "utl_identifier.h"
#include "global_extern.h"
#include "ace/Log_Msg.h"
-#include "ace/OS_NS_stdio.h"
-ACE_RCSID (ast,
- ast_predefined_type,
+ACE_RCSID (ast,
+ ast_predefined_type,
"$Id$")
AST_PredefinedType::AST_PredefinedType (void)
@@ -96,7 +95,7 @@ AST_PredefinedType::AST_PredefinedType (PredefinedType t,
: COMMON_Base (),
AST_Decl (AST_Decl::NT_pre_defined,
n,
- true),
+ I_TRUE),
AST_Type (AST_Decl::NT_pre_defined,
n),
AST_ConcreteType (AST_Decl::NT_pre_defined,
@@ -210,22 +209,6 @@ AST_PredefinedType::AST_PredefinedType (PredefinedType t,
new_name->nconc (conc_name);
}
- // The repo id computation in the AST_Decl constructor can't
- // be easily modified to work for predefined types.
- ACE_CString repo_id = ACE_CString ("IDL:omg.org/CORBA/")
- + id->get_string ()
- + ":"
- + this->version ();
- delete [] this->repoID_;
- size_t len = repo_id.length ();
- ACE_NEW (this->repoID_,
- char[len + 1]);
- this->repoID_[0] = '\0';
- ACE_OS::sprintf (this->repoID_,
- "%s",
- repo_id.c_str ());
- this->repoID_[len] = '\0';
-
this->set_name (new_name);
}