summaryrefslogtreecommitdiff
path: root/TAO_IDL/be/be_visitor_constant/constant_cs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO_IDL/be/be_visitor_constant/constant_cs.cpp')
-rw-r--r--TAO_IDL/be/be_visitor_constant/constant_cs.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/TAO_IDL/be/be_visitor_constant/constant_cs.cpp b/TAO_IDL/be/be_visitor_constant/constant_cs.cpp
index 6d4ceca7677..991b18b2384 100644
--- a/TAO_IDL/be/be_visitor_constant/constant_cs.cpp
+++ b/TAO_IDL/be/be_visitor_constant/constant_cs.cpp
@@ -80,23 +80,12 @@ be_visitor_constant_cs::visit_constant (be_constant *node)
}
*os << " " << node->name ();
-
if (!be_global->gen_inline_constants () || forbidden_in_class)
{
// For those constants not defined in the outermost scope,
// or in a module, they get assigned to their values in the source file.
- if (etype == AST_Expression::EV_longdouble)
- {
- *os << " (" << be_idt_nl
- << "ACE_CDR::LongDoubleAssign ("
- << node->constant_value () << "))" << be_uidt;
- }
- else
- {
- *os << " = " << node->constant_value ();
- }
+ *os << " = " << node->constant_value ();
}
-
*os << ";";
if (be_global->gen_inline_constants () && !forbidden_in_class)