File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ namespace TAO
87
87
88
88
// / Increase the length of the Interceptor sequence by one.
89
89
size_t const new_len = old_len + 1 ;
90
- this ->interceptors_ .size (new_len);
90
+ this ->interceptors_ .resize (new_len);
91
91
92
92
// Add the interceptor
93
93
this ->interceptors_ [old_len].interceptor_ =
@@ -162,7 +162,7 @@ namespace TAO
162
162
163
163
// / Increase the length of the Interceptor sequence by one.
164
164
size_t const new_len = old_len + 1 ;
165
- this ->interceptors_ .size (new_len);
165
+ this ->interceptors_ .resize (new_len);
166
166
167
167
// Add the interceptor
168
168
this ->interceptors_ [old_len].interceptor_ =
@@ -207,7 +207,7 @@ namespace TAO
207
207
// since some interceptors may not have been destroyed yet.
208
208
// Note that this size reduction is fast since no memory is
209
209
// actually deallocated.
210
- this ->interceptors_ .size (ilen);
210
+ this ->interceptors_ .resize (ilen);
211
211
}
212
212
}
213
213
catch (...)
Original file line number Diff line number Diff line change 14
14
15
15
#include /* */ " ace/pre.h"
16
16
17
- #include " ace/Array_Base .h"
17
+ #include " tao/orbconf .h"
18
18
19
19
#if !defined (ACE_LACKS_PRAGMA_ONCE)
20
20
# pragma once
21
21
#endif /* ACE_LACKS_PRAGMA_ONCE */
22
22
23
- #include " tao/orbconf.h "
23
+ #include < vector >
24
24
25
25
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26
26
@@ -79,7 +79,7 @@ namespace TAO
79
79
size_t size () const ;
80
80
81
81
private:
82
- typedef ACE_Array_Base <RegisteredInterceptor > RegisteredArray ;
82
+ using RegisteredArray = std::vector <RegisteredInterceptor> ;
83
83
84
84
// / Dynamic array of registered interceptors.
85
85
RegisteredArray interceptors_;
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ namespace TAO
83
83
// / been changed.)
84
84
void set_callback_for_impending_change (PICurrent_Impl *p);
85
85
86
- // / Typedef for the underyling "slot table."
87
- typedef ACE_Array_Base<CORBA::Any> Table ;
86
+ // / Type for the underyling "slot table."
87
+ using Table = ACE_Array_Base<CORBA::Any>;
88
88
89
89
// / Return a reference to the slot table currently associated
90
90
// / with this PICurrent_Impl object.
You can’t perform that action at this time.
0 commit comments