Commit 18f29ded authored by Martin Sustrik's avatar Martin Sustrik

Make cppcheck not complain about "'operator=' should return something"

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 70513871
...@@ -59,7 +59,7 @@ namespace zmq ...@@ -59,7 +59,7 @@ namespace zmq
int array_index; int array_index;
array_item_t (const array_item_t&); array_item_t (const array_item_t&);
void operator = (const array_item_t&); const array_item_t &operator = (const array_item_t&);
}; };
// Fast array implementation with O(1) access to item, insertion and // Fast array implementation with O(1) access to item, insertion and
...@@ -138,7 +138,7 @@ namespace zmq ...@@ -138,7 +138,7 @@ namespace zmq
items_t items; items_t items;
array_t (const array_t&); array_t (const array_t&);
void operator = (const array_t&); const array_t &operator = (const array_t&);
}; };
} }
......
...@@ -140,7 +140,7 @@ namespace zmq ...@@ -140,7 +140,7 @@ namespace zmq
#endif #endif
atomic_counter_t (const atomic_counter_t&); atomic_counter_t (const atomic_counter_t&);
void operator = (const atomic_counter_t&); const atomic_counter_t& operator = (const atomic_counter_t&);
}; };
} }
......
...@@ -135,7 +135,7 @@ namespace zmq ...@@ -135,7 +135,7 @@ namespace zmq
#endif #endif
atomic_ptr_t (const atomic_ptr_t&); atomic_ptr_t (const atomic_ptr_t&);
void operator = (const atomic_ptr_t&); const atomic_ptr_t &operator = (const atomic_ptr_t&);
}; };
} }
......
...@@ -51,7 +51,7 @@ namespace zmq ...@@ -51,7 +51,7 @@ namespace zmq
uint64_t last_time; uint64_t last_time;
clock_t (const clock_t&); clock_t (const clock_t&);
void operator = (const clock_t&); const clock_t &operator = (const clock_t&);
}; };
} }
......
...@@ -56,7 +56,7 @@ namespace zmq ...@@ -56,7 +56,7 @@ namespace zmq
std::string address; std::string address;
connect_session_t (const connect_session_t&); connect_session_t (const connect_session_t&);
void operator = (const connect_session_t&); const connect_session_t &operator = (const connect_session_t&);
}; };
} }
......
...@@ -143,7 +143,7 @@ namespace zmq ...@@ -143,7 +143,7 @@ namespace zmq
mutex_t log_sync; mutex_t log_sync;
ctx_t (const ctx_t&); ctx_t (const ctx_t&);
void operator = (const ctx_t&); const ctx_t &operator = (const ctx_t&);
}; };
} }
......
...@@ -167,7 +167,7 @@ namespace zmq ...@@ -167,7 +167,7 @@ namespace zmq
unsigned char *buf; unsigned char *buf;
decoder_base_t (const decoder_base_t&); decoder_base_t (const decoder_base_t&);
void operator = (const decoder_base_t&); const decoder_base_t &operator = (const decoder_base_t&);
}; };
// Decoder for 0MQ framing protocol. Converts data batches into messages. // Decoder for 0MQ framing protocol. Converts data batches into messages.
......
...@@ -88,7 +88,7 @@ namespace zmq ...@@ -88,7 +88,7 @@ namespace zmq
thread_t worker; thread_t worker;
devpoll_t (const devpoll_t&); devpoll_t (const devpoll_t&);
void operator = (const devpoll_t&); const devpoll_t &operator = (const devpoll_t&);
}; };
} }
......
...@@ -175,7 +175,7 @@ namespace zmq ...@@ -175,7 +175,7 @@ namespace zmq
unsigned char tmpbuf [10]; unsigned char tmpbuf [10];
encoder_t (const encoder_t&); encoder_t (const encoder_t&);
void operator = (const encoder_t&); const encoder_t &operator = (const encoder_t&);
}; };
} }
......
...@@ -85,7 +85,7 @@ namespace zmq ...@@ -85,7 +85,7 @@ namespace zmq
thread_t worker; thread_t worker;
epoll_t (const epoll_t&); epoll_t (const epoll_t&);
void operator = (const epoll_t&); const epoll_t &operator = (const epoll_t&);
}; };
} }
......
...@@ -71,7 +71,7 @@ namespace zmq ...@@ -71,7 +71,7 @@ namespace zmq
bool terminating; bool terminating;
fq_t (const fq_t&); fq_t (const fq_t&);
void operator = (const fq_t&); const fq_t &operator = (const fq_t&);
}; };
} }
......
...@@ -69,7 +69,7 @@ namespace zmq ...@@ -69,7 +69,7 @@ namespace zmq
poller_t *poller; poller_t *poller;
io_object_t (const io_object_t&); io_object_t (const io_object_t&);
void operator = (const io_object_t&); const io_object_t &operator = (const io_object_t&);
}; };
} }
......
...@@ -92,7 +92,7 @@ namespace zmq ...@@ -92,7 +92,7 @@ namespace zmq
thread_t worker; thread_t worker;
kqueue_t (const kqueue_t&); kqueue_t (const kqueue_t&);
void operator = (const kqueue_t&); const kqueue_t &operator = (const kqueue_t&);
}; };
} }
......
...@@ -67,7 +67,7 @@ namespace zmq ...@@ -67,7 +67,7 @@ namespace zmq
bool terminating; bool terminating;
lb_t (const lb_t&); lb_t (const lb_t&);
void operator = (const lb_t&); const lb_t &operator = (const lb_t&);
}; };
} }
......
...@@ -53,7 +53,7 @@ namespace zmq ...@@ -53,7 +53,7 @@ namespace zmq
// Disable copying of mailbox_t object. // Disable copying of mailbox_t object.
mailbox_t (const mailbox_t&); mailbox_t (const mailbox_t&);
void operator = (const mailbox_t&); const mailbox_t &operator = (const mailbox_t&);
}; };
} }
......
...@@ -110,7 +110,7 @@ namespace zmq ...@@ -110,7 +110,7 @@ namespace zmq
// Disable copy construction and assignment. // Disable copy construction and assignment.
mutex_t (const mutex_t&); mutex_t (const mutex_t&);
void operator = (const mutex_t&); const mutex_t &operator = (const mutex_t&);
}; };
} }
......
...@@ -48,7 +48,7 @@ namespace zmq ...@@ -48,7 +48,7 @@ namespace zmq
blob_t name; blob_t name;
named_session_t (const named_session_t&); named_session_t (const named_session_t&);
void operator = (const named_session_t&); const named_session_t &operator = (const named_session_t&);
}; };
} }
......
...@@ -116,7 +116,7 @@ namespace zmq ...@@ -116,7 +116,7 @@ namespace zmq
void send_command (command_t &cmd_); void send_command (command_t &cmd_);
object_t (const object_t&); object_t (const object_t&);
void operator = (const object_t&); const object_t &operator = (const object_t&);
}; };
} }
......
...@@ -131,7 +131,7 @@ namespace zmq ...@@ -131,7 +131,7 @@ namespace zmq
int term_acks; int term_acks;
own_t (const own_t&); own_t (const own_t&);
void operator = (const own_t&); const own_t &operator = (const own_t&);
}; };
} }
......
...@@ -67,7 +67,7 @@ namespace zmq ...@@ -67,7 +67,7 @@ namespace zmq
bool terminating; bool terminating;
pair_t (const pair_t&); pair_t (const pair_t&);
void operator = (const pair_t&); const pair_t &operator = (const pair_t&);
}; };
} }
......
...@@ -118,7 +118,7 @@ namespace zmq ...@@ -118,7 +118,7 @@ namespace zmq
handle_t pipe_handle; handle_t pipe_handle;
pgm_receiver_t (const pgm_receiver_t&); pgm_receiver_t (const pgm_receiver_t&);
void operator = (const pgm_receiver_t&); const pgm_receiver_t &operator = (const pgm_receiver_t&);
}; };
} }
......
...@@ -95,7 +95,7 @@ namespace zmq ...@@ -95,7 +95,7 @@ namespace zmq
size_t write_size; size_t write_size;
pgm_sender_t (const pgm_sender_t&); pgm_sender_t (const pgm_sender_t&);
void operator = (const pgm_sender_t&); const pgm_sender_t &operator = (const pgm_sender_t&);
}; };
} }
......
...@@ -113,7 +113,7 @@ namespace zmq ...@@ -113,7 +113,7 @@ namespace zmq
bool terminating; bool terminating;
reader_t (const reader_t&); reader_t (const reader_t&);
void operator = (const reader_t&); const reader_t &operator = (const reader_t&);
}; };
struct i_writer_events struct i_writer_events
...@@ -205,7 +205,7 @@ namespace zmq ...@@ -205,7 +205,7 @@ namespace zmq
bool terminating; bool terminating;
writer_t (const writer_t&); writer_t (const writer_t&);
void operator = (const writer_t&); const writer_t &operator = (const writer_t&);
}; };
} }
......
...@@ -92,7 +92,7 @@ namespace zmq ...@@ -92,7 +92,7 @@ namespace zmq
thread_t worker; thread_t worker;
poll_t (const poll_t&); poll_t (const poll_t&);
void operator = (const poll_t&); const poll_t &operator = (const poll_t&);
}; };
} }
......
...@@ -75,7 +75,7 @@ namespace zmq ...@@ -75,7 +75,7 @@ namespace zmq
atomic_counter_t load; atomic_counter_t load;
poller_base_t (const poller_base_t&); poller_base_t (const poller_base_t&);
void operator = (const poller_base_t&); const poller_base_t &operator = (const poller_base_t&);
}; };
} }
......
...@@ -35,7 +35,7 @@ namespace zmq ...@@ -35,7 +35,7 @@ namespace zmq
private: private:
pub_t (const pub_t&); pub_t (const pub_t&);
void operator = (const pub_t&); const pub_t &operator = (const pub_t&);
}; };
} }
......
...@@ -50,7 +50,7 @@ namespace zmq ...@@ -50,7 +50,7 @@ namespace zmq
fq_t fq; fq_t fq;
pull_t (const pull_t&); pull_t (const pull_t&);
void operator = (const pull_t&); const pull_t &operator = (const pull_t&);
}; };
......
...@@ -50,7 +50,7 @@ namespace zmq ...@@ -50,7 +50,7 @@ namespace zmq
lb_t lb; lb_t lb;
push_t (const push_t&); push_t (const push_t&);
void operator = (const push_t&); const push_t &operator = (const push_t&);
}; };
} }
......
...@@ -49,7 +49,7 @@ namespace zmq ...@@ -49,7 +49,7 @@ namespace zmq
bool request_begins; bool request_begins;
rep_t (const rep_t&); rep_t (const rep_t&);
void operator = (const rep_t&); const rep_t &operator = (const rep_t&);
}; };
......
...@@ -49,7 +49,7 @@ namespace zmq ...@@ -49,7 +49,7 @@ namespace zmq
bool message_begins; bool message_begins;
req_t (const req_t&); req_t (const req_t&);
void operator = (const req_t&); const req_t &operator = (const req_t&);
}; };
} }
......
...@@ -106,7 +106,7 @@ namespace zmq ...@@ -106,7 +106,7 @@ namespace zmq
thread_t worker; thread_t worker;
select_t (const select_t&); select_t (const select_t&);
void operator = (const select_t&); const select_t &operator = (const select_t&);
}; };
} }
......
...@@ -77,7 +77,7 @@ namespace zmq ...@@ -77,7 +77,7 @@ namespace zmq
HANDLE ev; HANDLE ev;
semaphore_t (const semaphore_t&); semaphore_t (const semaphore_t&);
void operator = (const semaphore_t&); const semaphore_t &operator = (const semaphore_t&);
}; };
#elif defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_OSX || defined ZMQ_HAVE_OPENVMS #elif defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_OSX || defined ZMQ_HAVE_OPENVMS
...@@ -130,7 +130,7 @@ namespace zmq ...@@ -130,7 +130,7 @@ namespace zmq
pthread_mutex_t mutex; pthread_mutex_t mutex;
semaphore_t (const semaphore_t&); semaphore_t (const semaphore_t&);
void operator = (const semaphore_t&); const semaphore_t &operator = (const semaphore_t&);
}; };
#else #else
...@@ -175,7 +175,7 @@ namespace zmq ...@@ -175,7 +175,7 @@ namespace zmq
sem_t sem; sem_t sem;
semaphore_t (const semaphore_t&); semaphore_t (const semaphore_t&);
void operator = (const semaphore_t&); const semaphore_t &operator = (const semaphore_t&);
}; };
#endif #endif
......
...@@ -141,7 +141,7 @@ namespace zmq ...@@ -141,7 +141,7 @@ namespace zmq
} state; } state;
session_t (const session_t&); session_t (const session_t&);
void operator = (const session_t&); const session_t &operator = (const session_t&);
}; };
} }
......
...@@ -173,7 +173,7 @@ namespace zmq ...@@ -173,7 +173,7 @@ namespace zmq
mutex_t sessions_sync; mutex_t sessions_sync;
socket_base_t (const socket_base_t&); socket_base_t (const socket_base_t&);
void operator = (const socket_base_t&); const socket_base_t &operator = (const socket_base_t&);
}; };
} }
......
...@@ -41,7 +41,7 @@ namespace zmq ...@@ -41,7 +41,7 @@ namespace zmq
private: private:
sub_t (const sub_t&); sub_t (const sub_t&);
void operator = (const sub_t&); const sub_t &operator = (const sub_t&);
}; };
} }
......
...@@ -111,6 +111,10 @@ namespace zmq ...@@ -111,6 +111,10 @@ namespace zmq
char *write_buf; char *write_buf;
int64_t write_buf_start_addr; int64_t write_buf_start_addr;
// Disable copying of the swap object.
swap_t (const swap_t&);
const swap_t &operator = (const swap_t&);
}; };
} }
......
...@@ -72,7 +72,7 @@ namespace zmq ...@@ -72,7 +72,7 @@ namespace zmq
fd_t s; fd_t s;
tcp_connecter_t (const tcp_connecter_t&); tcp_connecter_t (const tcp_connecter_t&);
void operator = (const tcp_connecter_t&); const tcp_connecter_t &operator = (const tcp_connecter_t&);
}; };
} }
......
...@@ -64,7 +64,7 @@ namespace zmq ...@@ -64,7 +64,7 @@ namespace zmq
fd_t s; fd_t s;
tcp_listener_t (const tcp_listener_t&); tcp_listener_t (const tcp_listener_t&);
void operator = (const tcp_listener_t&); const tcp_listener_t &operator = (const tcp_listener_t&);
}; };
} }
......
...@@ -63,7 +63,7 @@ namespace zmq ...@@ -63,7 +63,7 @@ namespace zmq
// Disable copy construction of tcp_socket. // Disable copy construction of tcp_socket.
tcp_socket_t (const tcp_socket_t&); tcp_socket_t (const tcp_socket_t&);
void operator = (const tcp_socket_t&); const tcp_socket_t &operator = (const tcp_socket_t&);
}; };
} }
......
...@@ -69,7 +69,7 @@ namespace zmq ...@@ -69,7 +69,7 @@ namespace zmq
#endif #endif
thread_t (const thread_t&); thread_t (const thread_t&);
void operator = (const thread_t&); const thread_t &operator = (const thread_t&);
}; };
} }
......
...@@ -43,7 +43,7 @@ namespace zmq ...@@ -43,7 +43,7 @@ namespace zmq
void detached (); void detached ();
transient_session_t (const transient_session_t&); transient_session_t (const transient_session_t&);
void operator = (const transient_session_t&); const transient_session_t &operator = (const transient_session_t&);
}; };
} }
......
...@@ -49,7 +49,7 @@ namespace zmq ...@@ -49,7 +49,7 @@ namespace zmq
} next; } next;
trie_t (const trie_t&); trie_t (const trie_t&);
void operator = (const trie_t&); const trie_t &operator = (const trie_t&);
}; };
} }
......
...@@ -65,7 +65,7 @@ namespace zmq ...@@ -65,7 +65,7 @@ namespace zmq
bool terminating; bool terminating;
xpub_t (const xpub_t&); xpub_t (const xpub_t&);
void operator = (const xpub_t&); const xpub_t &operator = (const xpub_t&);
}; };
} }
......
...@@ -106,7 +106,7 @@ namespace zmq ...@@ -106,7 +106,7 @@ namespace zmq
bool terminating; bool terminating;
xrep_t (const xrep_t&); xrep_t (const xrep_t&);
void operator = (const xrep_t&); const xrep_t &operator = (const xrep_t&);
}; };
} }
......
...@@ -55,7 +55,7 @@ namespace zmq ...@@ -55,7 +55,7 @@ namespace zmq
lb_t lb; lb_t lb;
xreq_t (const xreq_t&); xreq_t (const xreq_t&);
void operator = (const xreq_t&); const xreq_t &operator = (const xreq_t&);
}; };
} }
......
...@@ -70,7 +70,7 @@ namespace zmq ...@@ -70,7 +70,7 @@ namespace zmq
bool more; bool more;
xsub_t (const xsub_t&); xsub_t (const xsub_t&);
void operator = (const xsub_t&); const xsub_t &operator = (const xsub_t&);
}; };
} }
......
...@@ -200,7 +200,7 @@ namespace zmq ...@@ -200,7 +200,7 @@ namespace zmq
// Disable copying of ypipe object. // Disable copying of ypipe object.
ypipe_t (const ypipe_t&); ypipe_t (const ypipe_t&);
void operator = (const ypipe_t&); const ypipe_t &operator = (const ypipe_t&);
}; };
} }
......
...@@ -189,7 +189,7 @@ namespace zmq ...@@ -189,7 +189,7 @@ namespace zmq
// Disable copying of yqueue. // Disable copying of yqueue.
yqueue_t (const yqueue_t&); yqueue_t (const yqueue_t&);
void operator = (const yqueue_t&); const yqueue_t &operator = (const yqueue_t&);
}; };
} }
......
...@@ -75,7 +75,7 @@ namespace zmq ...@@ -75,7 +75,7 @@ namespace zmq
class session_t *session; class session_t *session;
zmq_connecter_t (const zmq_connecter_t&); zmq_connecter_t (const zmq_connecter_t&);
void operator = (const zmq_connecter_t&); const zmq_connecter_t &operator = (const zmq_connecter_t&);
}; };
} }
......
...@@ -78,7 +78,7 @@ namespace zmq ...@@ -78,7 +78,7 @@ namespace zmq
bool plugged; bool plugged;
zmq_engine_t (const zmq_engine_t&); zmq_engine_t (const zmq_engine_t&);
void operator = (const zmq_engine_t&); const zmq_engine_t &operator = (const zmq_engine_t&);
}; };
} }
......
...@@ -84,7 +84,7 @@ namespace zmq ...@@ -84,7 +84,7 @@ namespace zmq
class io_thread_t *io_thread; class io_thread_t *io_thread;
zmq_init_t (const zmq_init_t&); zmq_init_t (const zmq_init_t&);
void operator = (const zmq_init_t&); const zmq_init_t &operator = (const zmq_init_t&);
}; };
} }
......
...@@ -58,7 +58,7 @@ namespace zmq ...@@ -58,7 +58,7 @@ namespace zmq
class socket_base_t *socket; class socket_base_t *socket;
zmq_listener_t (const zmq_listener_t&); zmq_listener_t (const zmq_listener_t&);
void operator = (const zmq_listener_t&); const zmq_listener_t &operator = (const zmq_listener_t&);
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment