summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp
index a1f3a3d894c..b2dbc13542d 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp
@@ -276,11 +276,11 @@ int be_visitor_exception_ctor::visit_predefined_type (be_predefined_type *node)
{
if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH)
{
- *os << "const " << bt->nested_type_name (this->ctx_->scope ());
+ *os << "const ::" << bt->nested_type_name (this->ctx_->scope ());
}
else
{
- *os << "const " << bt->name ();
+ *os << "const ::" << bt->name ();
}
*os << " &";
@@ -292,23 +292,23 @@ int be_visitor_exception_ctor::visit_predefined_type (be_predefined_type *node)
{
if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH)
{
- *os << "const " << bt->nested_type_name (this->ctx_->scope (),
- "_ptr ");
+ *os << "const ::" << bt->nested_type_name (this->ctx_->scope (),
+ "_ptr ");
}
else
{
- *os << "const " << bt->name () << "_ptr ";
+ *os << "const ::" << bt->name () << "_ptr ";
}
}
else
{
if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH)
{
- *os << bt->nested_type_name (this->ctx_->scope ());
+ *os << "::" << bt->nested_type_name (this->ctx_->scope ());
}
else
{
- *os << bt->name ();
+ *os << "::" << bt->name ();
}
}
@@ -353,7 +353,7 @@ int be_visitor_exception_ctor::visit_string (be_string *node)
}
else
{
- *os << "const CORBA::WChar *";
+ *os << "const ::CORBA::WChar *";
}
return 0;