diff options
author | Knut Petter Svendsen <knut@altuma.no> | 2022-09-19 14:37:02 +0200 |
---|---|---|
committer | Knut Petter Svendsen <knut@altuma.no> | 2022-09-22 16:20:53 +0200 |
commit | 2aab75d5fddc126e8085c70fe8e1b875b75a30ef (patch) | |
tree | 82498955ff2b3829d6597ed88a9eca1b1705df96 /ACE/tests | |
parent | 5e96bb28fc7572f39b63ac2aca72800c45cdb1ee (diff) | |
download | ATCD-2aab75d5fddc126e8085c70fe8e1b875b75a30ef.tar.gz |
Part 2: Remove obsolescent (void) in functions with no parameters
Diffstat (limited to 'ACE/tests')
-rw-r--r-- | ACE/tests/Config_Test.h | 4 | ||||
-rw-r--r-- | ACE/tests/IOStream_Test.cpp | 2 | ||||
-rw-r--r-- | ACE/tests/Message_Queue_Test_Ex.h | 2 | ||||
-rw-r--r-- | ACE/tests/Proactor_Scatter_Gather_Test.cpp | 2 | ||||
-rw-r--r-- | ACE/tests/Proactor_Test.h | 20 | ||||
-rw-r--r-- | ACE/tests/Refcounted_Auto_Ptr_Test.h | 2 | ||||
-rw-r--r-- | ACE/tests/SSL/Bug_2912_Regression_Test.cpp | 8 | ||||
-rw-r--r-- | ACE/tests/TP_Reactor_Test.h | 36 | ||||
-rw-r--r-- | ACE/tests/TSS_Test_Errno.h | 4 |
9 files changed, 40 insertions, 40 deletions
diff --git a/ACE/tests/Config_Test.h b/ACE/tests/Config_Test.h index b9501338608..d125defbdf8 100644 --- a/ACE/tests/Config_Test.h +++ b/ACE/tests/Config_Test.h @@ -21,8 +21,8 @@ const int TEST_MAX_STRING = 256; class Config_Test { public: - Config_Test (void): equality_tested_ (0) { } - ~Config_Test (void) { } + Config_Test () : equality_tested_ (0) { } + ~Config_Test () { } // Used to test the equality and inequality operations. int testEquality (); diff --git a/ACE/tests/IOStream_Test.cpp b/ACE/tests/IOStream_Test.cpp index 313c54fb014..46ca847729a 100644 --- a/ACE/tests/IOStream_Test.cpp +++ b/ACE/tests/IOStream_Test.cpp @@ -61,7 +61,7 @@ typedef ACE_IOStream<ACE_SOCK_Stream> ACE_SOCK_IOStream; class qchar { public: - qchar (void) { c_ = '\0'; } + qchar () { c_ = '\0'; } qchar (char c) : c_ (c) { }; diff --git a/ACE/tests/Message_Queue_Test_Ex.h b/ACE/tests/Message_Queue_Test_Ex.h index e30b4415194..8dd9a4a544e 100644 --- a/ACE/tests/Message_Queue_Test_Ex.h +++ b/ACE/tests/Message_Queue_Test_Ex.h @@ -31,7 +31,7 @@ public: ACE_OS::strcpy (this->message_, inputMsg); } - ~User_Class (void) { delete [] this->message_; } + ~User_Class () { delete [] this->message_; } const char *message () const { diff --git a/ACE/tests/Proactor_Scatter_Gather_Test.cpp b/ACE/tests/Proactor_Scatter_Gather_Test.cpp index e2c1d3b4054..0210ddb43ef 100644 --- a/ACE/tests/Proactor_Scatter_Gather_Test.cpp +++ b/ACE/tests/Proactor_Scatter_Gather_Test.cpp @@ -255,7 +255,7 @@ public: // Virtual from ACE_Asynch_Acceptor virtual Receiver *make_handler (); - int get_number_sessions (void) { return this->sessions_; } + int get_number_sessions () { return this->sessions_; } private: void on_new_receiver (Receiver &rcvr); diff --git a/ACE/tests/Proactor_Test.h b/ACE/tests/Proactor_Test.h index 76f479df749..e6c2f6f0706 100644 --- a/ACE/tests/Proactor_Test.h +++ b/ACE/tests/Proactor_Test.h @@ -27,11 +27,11 @@ public: Server (TestData *tester, int id); ~Server (); - int id (void) { return this->id_; } - size_t get_total_snd (void) { return this->total_snd_; } - size_t get_total_rcv (void) { return this->total_rcv_; } - long get_total_w (void) { return this->total_w_; } - long get_total_r (void) { return this->total_r_; } + int id () { return this->id_; } + size_t get_total_snd () { return this->total_snd_; } + size_t get_total_rcv () { return this->total_rcv_; } + long get_total_w () { return this->total_w_; } + long get_total_r () { return this->total_r_; } // This is called to pass the new connection's addresses. virtual void addresses (const ACE_INET_Addr& peer, @@ -91,11 +91,11 @@ public: Client (TestData *tester, int id); ~Client (); - int id (void) { return this->id_; } - size_t get_total_snd (void) { return this->total_snd_; } - size_t get_total_rcv (void) { return this->total_rcv_; } - int get_total_w (void) { return this->total_w_; } - int get_total_r (void) { return this->total_r_; } + int id () { return this->id_; } + size_t get_total_snd () { return this->total_snd_; } + size_t get_total_rcv () { return this->total_rcv_; } + int get_total_w () { return this->total_w_; } + int get_total_r () { return this->total_r_; } // This is called to pass the new connection's addresses. virtual void addresses (const ACE_INET_Addr& peer, diff --git a/ACE/tests/Refcounted_Auto_Ptr_Test.h b/ACE/tests/Refcounted_Auto_Ptr_Test.h index c16d4dcba13..62ba56def98 100644 --- a/ACE/tests/Refcounted_Auto_Ptr_Test.h +++ b/ACE/tests/Refcounted_Auto_Ptr_Test.h @@ -20,7 +20,7 @@ struct Printer { Printer (const char *message); - ~Printer (void) ; + ~Printer (); void print (); diff --git a/ACE/tests/SSL/Bug_2912_Regression_Test.cpp b/ACE/tests/SSL/Bug_2912_Regression_Test.cpp index 3038a1b8e3f..5acc67f1947 100644 --- a/ACE/tests/SSL/Bug_2912_Regression_Test.cpp +++ b/ACE/tests/SSL/Bug_2912_Regression_Test.cpp @@ -280,7 +280,7 @@ private: int closing_; }; -Server_Service_Handler::Server_Service_Handler (void) : +Server_Service_Handler::Server_Service_Handler () : ssl_stream_ (ACE_SSL_Asynch_Stream::ST_SERVER), pending_writes_ (0), pending_reads_ (0), @@ -573,7 +573,7 @@ public: typedef ACE_Singleton<Acceptor, ACE_SYNCH_RECURSIVE_MUTEX> Acceptor_Singleton; #define ACCEPTOR Acceptor_Singleton::instance () -Acceptor::Acceptor (void) : +Acceptor::Acceptor () : accept_cnt_ (0), cancel_flag_ (0), service_handler_ (0) @@ -729,7 +729,7 @@ private: int closing_; }; -Client_Service_Handler::Client_Service_Handler (void) : +Client_Service_Handler::Client_Service_Handler () : ssl_stream_ (ACE_SSL_Asynch_Stream::ST_CLIENT), read_successful_ (0), pending_writes_ (0), @@ -1057,7 +1057,7 @@ protected: typedef ACE_Singleton<Connector, ACE_SYNCH_RECURSIVE_MUTEX> Connector_Singleton; #define CONNECTOR Connector_Singleton::instance () -Connector::Connector (void) : +Connector::Connector () : service_handler_ (0) { } diff --git a/ACE/tests/TP_Reactor_Test.h b/ACE/tests/TP_Reactor_Test.h index 0790c402cb9..32c23525273 100644 --- a/ACE/tests/TP_Reactor_Test.h +++ b/ACE/tests/TP_Reactor_Test.h @@ -42,10 +42,10 @@ public: ~Receiver (); - long get_total_snd (void) { return this->total_snd_; } - long get_total_rcv (void) { return this->total_rcv_; } - long get_total_w (void) { return this->total_w_; } - long get_total_r (void) { return this->total_r_; } + long get_total_snd () { return this->total_snd_; } + long get_total_rcv () { return this->total_rcv_; } + long get_total_w () { return this->total_w_; } + long get_total_r () { return this->total_r_; } // virtual from ACE_Svc_Handler<> virtual int open (void * pVoid); @@ -77,11 +77,11 @@ class Acceptor : public ACE_Acceptor<Receiver,ACE_SOCK_ACCEPTOR> { friend class Receiver; public: - size_t get_number_sessions (void) { return sessions_; } - long get_total_snd (void) { return this->total_snd_; } - long get_total_rcv (void) { return this->total_rcv_; } - long get_total_w (void) { return this->total_w_; } - long get_total_r (void) { return this->total_r_; } + size_t get_number_sessions () { return sessions_; } + long get_total_snd () { return this->total_snd_; } + long get_total_rcv () { return this->total_rcv_; } + long get_total_w () { return this->total_w_; } + long get_total_r () { return this->total_r_; } Acceptor (); virtual ~Acceptor (); @@ -121,10 +121,10 @@ public: ~Sender (); - long get_total_snd (void) { return this->total_snd_; } - long get_total_rcv (void) { return this->total_rcv_; } - long get_total_w (void) { return this->total_w_; } - long get_total_r (void) { return this->total_r_; } + long get_total_snd () { return this->total_snd_; } + long get_total_rcv () { return this->total_rcv_; } + long get_total_w () { return this->total_w_; } + long get_total_r () { return this->total_r_; } // virtual from ACE_Svc_Handler<> virtual int open (void * pVoid); @@ -159,11 +159,11 @@ class Connector: public ACE_Connector<Sender,ACE_SOCK_CONNECTOR> { friend class Sender; public: - size_t get_number_sessions (void) { return sessions_; } - long get_total_snd (void) { return this->total_snd_; } - long get_total_rcv (void) { return this->total_rcv_; } - long get_total_w (void) { return this->total_w_; } - long get_total_r (void) { return this->total_r_; } + size_t get_number_sessions () { return sessions_; } + long get_total_snd () { return this->total_snd_; } + long get_total_rcv () { return this->total_rcv_; } + long get_total_w () { return this->total_w_; } + long get_total_r () { return this->total_r_; } Connector (); diff --git a/ACE/tests/TSS_Test_Errno.h b/ACE/tests/TSS_Test_Errno.h index bf60ac19c45..d2c9c8166e4 100644 --- a/ACE/tests/TSS_Test_Errno.h +++ b/ACE/tests/TSS_Test_Errno.h @@ -39,10 +39,10 @@ public: deleted_ += 1; } - int error (void) { return this->errno_; } + int error () { return this->errno_; } void error (int i) { this->errno_ = i; } - int line (void) { return this->lineno_; } + int line () { return this->lineno_; } void line (int l) { this->lineno_ = l; } // Errno::flags_ is a static variable, so we've got to protect it |