diff options
author | boris <boris@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-10-29 21:29:28 +0000 |
---|---|---|
committer | boris <boris@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-10-29 21:29:28 +0000 |
commit | d3e82146b4cdcbee9e9112639c12ffc54bc55bc1 (patch) | |
tree | 042fdd57d4911068f1f4a29dcc1f40a575109194 | |
parent | 7eeb5b5714d3f8bb3e93c1fb0c37dd759ca3f9c3 (diff) | |
download | ATCD-d3e82146b4cdcbee9e9112639c12ffc54bc55bc1.tar.gz |
ChangeLogTag: Wed Oct 29 15:19:07 2003 Boris Kolpackov <boris@dre.vanderbilt.edu>
-rw-r--r-- | TAO/CIAO/CCF/CCF/IDL2/SyntaxTree/Elements.hpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SyntaxTree/Elements.hpp b/TAO/CIAO/CCF/CCF/IDL2/SyntaxTree/Elements.hpp index fde1113ab85..5f9e0918de3 100644 --- a/TAO/CIAO/CCF/CCF/IDL2/SyntaxTree/Elements.hpp +++ b/TAO/CIAO/CCF/CCF/IDL2/SyntaxTree/Elements.hpp @@ -515,23 +515,13 @@ namespace CCF CompilerElements::Context& context () { - if (context_holder_.in () == 0) - { - context_holder_ = ContextHolderPtr (new ContextHolder); - } - - return context_holder_->context; + return context_holder ()->context; } CompilerElements::Context const& context () const { - if (context_holder_.in () == 0) - { - context_holder_ = ContextHolderPtr (new ContextHolder); - } - - return context_holder_->context; + return context_holder ()->context; } public: @@ -543,6 +533,11 @@ namespace CCF ContextHolderPtr context_holder () const { + if (context_holder_.in () == 0) + { + context_holder_ = ContextHolderPtr (new ContextHolder); + } + return context_holder_; } |