diff --git a/TAO/tao/PI/Interceptor_List_T.cpp b/TAO/tao/PI/Interceptor_List_T.cpp index 929797f21c146..1e9a5f0be9f08 100644 --- a/TAO/tao/PI/Interceptor_List_T.cpp +++ b/TAO/tao/PI/Interceptor_List_T.cpp @@ -87,7 +87,7 @@ namespace TAO /// Increase the length of the Interceptor sequence by one. size_t const new_len = old_len + 1; - this->interceptors_.size (new_len); + this->interceptors_.resize (new_len); // Add the interceptor this->interceptors_[old_len].interceptor_ = @@ -162,7 +162,7 @@ namespace TAO /// Increase the length of the Interceptor sequence by one. size_t const new_len = old_len + 1; - this->interceptors_.size (new_len); + this->interceptors_.resize (new_len); // Add the interceptor this->interceptors_[old_len].interceptor_ = @@ -207,7 +207,7 @@ namespace TAO // since some interceptors may not have been destroyed yet. // Note that this size reduction is fast since no memory is // actually deallocated. - this->interceptors_.size (ilen); + this->interceptors_.resize (ilen); } } catch (...) diff --git a/TAO/tao/PI/Interceptor_List_T.h b/TAO/tao/PI/Interceptor_List_T.h index 049027473eca5..526e1c43187e8 100644 --- a/TAO/tao/PI/Interceptor_List_T.h +++ b/TAO/tao/PI/Interceptor_List_T.h @@ -14,13 +14,13 @@ #include /**/ "ace/pre.h" -#include "ace/Array_Base.h" +#include "tao/orbconf.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ -#include "tao/orbconf.h" +#include TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -79,7 +79,7 @@ namespace TAO size_t size () const; private: - typedef ACE_Array_Base RegisteredArray; + using RegisteredArray = std::vector; /// Dynamic array of registered interceptors. RegisteredArray interceptors_; diff --git a/TAO/tao/PI/PICurrent_Impl.h b/TAO/tao/PI/PICurrent_Impl.h index cad2844f78d67..9055930e6cfa8 100644 --- a/TAO/tao/PI/PICurrent_Impl.h +++ b/TAO/tao/PI/PICurrent_Impl.h @@ -83,8 +83,8 @@ namespace TAO /// been changed.) void set_callback_for_impending_change (PICurrent_Impl *p); - /// Typedef for the underyling "slot table." - typedef ACE_Array_Base Table; + /// Type for the underyling "slot table." + using Table = ACE_Array_Base; /// Return a reference to the slot table currently associated /// with this PICurrent_Impl object.