diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_scope.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_scope.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/TAO/TAO_IDL/be/be_scope.cpp b/TAO/TAO_IDL/be/be_scope.cpp index 0ba6ed76554..cdbf44f9635 100644 --- a/TAO/TAO_IDL/be/be_scope.cpp +++ b/TAO/TAO_IDL/be/be_scope.cpp @@ -15,7 +15,7 @@ #include "be_visitor.h" // Default Constructor. -be_scope::be_scope (void) +be_scope::be_scope () : UTL_Scope (), comma_ (0) { @@ -28,7 +28,7 @@ be_scope::be_scope (AST_Decl::NodeType type) { } -be_scope::~be_scope (void) +be_scope::~be_scope () { } @@ -43,7 +43,7 @@ be_scope::be_add_field (AST_Field *f) AST_Argument * be_scope::be_add_argument (AST_Argument *) { - return 0; + return nullptr; } void @@ -53,14 +53,14 @@ be_scope::comma (unsigned short comma) } int -be_scope::comma (void) const +be_scope::comma () const { return this->comma_; } // Return the scope created by this node (if one exists, else NULL). be_decl * -be_scope::decl (void) +be_scope::decl () { switch (this->scope_node_type ()) { @@ -95,12 +95,12 @@ be_scope::decl (void) case AST_Decl::NT_finder: return dynamic_cast<be_finder*> (this); default: - return (be_decl *)0; + return (be_decl *)nullptr; } } void -be_scope::destroy (void) +be_scope::destroy () { } @@ -109,5 +109,3 @@ be_scope::accept (be_visitor *visitor) { return visitor->visit_scope (this); } - -IMPL_NARROW_FROM_SCOPE (be_scope) |