diff options
Diffstat (limited to 'ACE/tests/Bug_2540_Regression_Test.cpp')
-rw-r--r-- | ACE/tests/Bug_2540_Regression_Test.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ACE/tests/Bug_2540_Regression_Test.cpp b/ACE/tests/Bug_2540_Regression_Test.cpp index 5cfc8a53303..6d624def926 100644 --- a/ACE/tests/Bug_2540_Regression_Test.cpp +++ b/ACE/tests/Bug_2540_Regression_Test.cpp @@ -47,8 +47,8 @@ public: void simulate_socket_closure(); /// Reactor callback - virtual ACE_HANDLE get_handle() const; - virtual int handle_input(ACE_HANDLE); + ACE_HANDLE get_handle() const override; + int handle_input(ACE_HANDLE) override; private: bool auto_remove_flag_; @@ -78,7 +78,7 @@ public: bool check_expected_results() const; - virtual int handle_timeout(ACE_Time_Value const &, void const*); + int handle_timeout(ACE_Time_Value const &, void const*) override; private: void send_data_through_handlers(); @@ -105,11 +105,7 @@ run_main (int, ACE_TCHAR *[]) // happen with ACE_WFMO_Reactor. ACE_Select_Reactor *impl_ptr = 0; ACE_NEW_RETURN (impl_ptr, ACE_Select_Reactor, -1); -#if defined (ACE_HAS_CPP11) std::unique_ptr<ACE_Select_Reactor> auto_impl (impl_ptr); -#else - auto_ptr<ACE_Select_Reactor> auto_impl (impl_ptr); -#endif ACE_Reactor reactor (impl_ptr); |