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

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik 2011-01-13 11:44:23 +01:00
parent 7051387108
commit 18f29ded6a
52 changed files with 59 additions and 55 deletions

View File

@ -59,7 +59,7 @@ namespace zmq
int array_index;
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
@ -138,7 +138,7 @@ namespace zmq
items_t items;
array_t (const array_t&);
void operator = (const array_t&);
const array_t &operator = (const array_t&);
};
}

View File

@ -140,7 +140,7 @@ namespace zmq
#endif
atomic_counter_t (const atomic_counter_t&);
void operator = (const atomic_counter_t&);
const atomic_counter_t& operator = (const atomic_counter_t&);
};
}

View File

@ -135,7 +135,7 @@ namespace zmq
#endif
atomic_ptr_t (const atomic_ptr_t&);
void operator = (const atomic_ptr_t&);
const atomic_ptr_t &operator = (const atomic_ptr_t&);
};
}

View File

@ -51,7 +51,7 @@ namespace zmq
uint64_t last_time;
clock_t (const clock_t&);
void operator = (const clock_t&);
const clock_t &operator = (const clock_t&);
};
}

View File

@ -56,7 +56,7 @@ namespace zmq
std::string address;
connect_session_t (const connect_session_t&);
void operator = (const connect_session_t&);
const connect_session_t &operator = (const connect_session_t&);
};
}

View File

@ -143,7 +143,7 @@ namespace zmq
mutex_t log_sync;
ctx_t (const ctx_t&);
void operator = (const ctx_t&);
const ctx_t &operator = (const ctx_t&);
};
}

View File

@ -167,7 +167,7 @@ namespace zmq
unsigned char *buf;
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.

View File

@ -88,7 +88,7 @@ namespace zmq
thread_t worker;
devpoll_t (const devpoll_t&);
void operator = (const devpoll_t&);
const devpoll_t &operator = (const devpoll_t&);
};
}

View File

@ -175,7 +175,7 @@ namespace zmq
unsigned char tmpbuf [10];
encoder_t (const encoder_t&);
void operator = (const encoder_t&);
const encoder_t &operator = (const encoder_t&);
};
}

View File

@ -85,7 +85,7 @@ namespace zmq
thread_t worker;
epoll_t (const epoll_t&);
void operator = (const epoll_t&);
const epoll_t &operator = (const epoll_t&);
};
}

View File

@ -71,7 +71,7 @@ namespace zmq
bool terminating;
fq_t (const fq_t&);
void operator = (const fq_t&);
const fq_t &operator = (const fq_t&);
};
}

View File

@ -69,7 +69,7 @@ namespace zmq
poller_t *poller;
io_object_t (const io_object_t&);
void operator = (const io_object_t&);
const io_object_t &operator = (const io_object_t&);
};
}

View File

@ -92,7 +92,7 @@ namespace zmq
thread_t worker;
kqueue_t (const kqueue_t&);
void operator = (const kqueue_t&);
const kqueue_t &operator = (const kqueue_t&);
};
}

View File

@ -67,7 +67,7 @@ namespace zmq
bool terminating;
lb_t (const lb_t&);
void operator = (const lb_t&);
const lb_t &operator = (const lb_t&);
};
}

View File

@ -53,7 +53,7 @@ namespace zmq
// Disable copying of mailbox_t object.
mailbox_t (const mailbox_t&);
void operator = (const mailbox_t&);
const mailbox_t &operator = (const mailbox_t&);
};
}

View File

@ -110,7 +110,7 @@ namespace zmq
// Disable copy construction and assignment.
mutex_t (const mutex_t&);
void operator = (const mutex_t&);
const mutex_t &operator = (const mutex_t&);
};
}

View File

@ -48,7 +48,7 @@ namespace zmq
blob_t name;
named_session_t (const named_session_t&);
void operator = (const named_session_t&);
const named_session_t &operator = (const named_session_t&);
};
}

View File

@ -116,7 +116,7 @@ namespace zmq
void send_command (command_t &cmd_);
object_t (const object_t&);
void operator = (const object_t&);
const object_t &operator = (const object_t&);
};
}

View File

@ -131,7 +131,7 @@ namespace zmq
int term_acks;
own_t (const own_t&);
void operator = (const own_t&);
const own_t &operator = (const own_t&);
};
}

View File

@ -67,7 +67,7 @@ namespace zmq
bool terminating;
pair_t (const pair_t&);
void operator = (const pair_t&);
const pair_t &operator = (const pair_t&);
};
}

View File

@ -118,7 +118,7 @@ namespace zmq
handle_t pipe_handle;
pgm_receiver_t (const pgm_receiver_t&);
void operator = (const pgm_receiver_t&);
const pgm_receiver_t &operator = (const pgm_receiver_t&);
};
}

View File

@ -95,7 +95,7 @@ namespace zmq
size_t write_size;
pgm_sender_t (const pgm_sender_t&);
void operator = (const pgm_sender_t&);
const pgm_sender_t &operator = (const pgm_sender_t&);
};
}

View File

@ -113,7 +113,7 @@ namespace zmq
bool terminating;
reader_t (const reader_t&);
void operator = (const reader_t&);
const reader_t &operator = (const reader_t&);
};
struct i_writer_events
@ -205,7 +205,7 @@ namespace zmq
bool terminating;
writer_t (const writer_t&);
void operator = (const writer_t&);
const writer_t &operator = (const writer_t&);
};
}

View File

@ -92,7 +92,7 @@ namespace zmq
thread_t worker;
poll_t (const poll_t&);
void operator = (const poll_t&);
const poll_t &operator = (const poll_t&);
};
}

View File

@ -75,7 +75,7 @@ namespace zmq
atomic_counter_t load;
poller_base_t (const poller_base_t&);
void operator = (const poller_base_t&);
const poller_base_t &operator = (const poller_base_t&);
};
}

View File

@ -35,7 +35,7 @@ namespace zmq
private:
pub_t (const pub_t&);
void operator = (const pub_t&);
const pub_t &operator = (const pub_t&);
};
}

View File

@ -50,7 +50,7 @@ namespace zmq
fq_t fq;
pull_t (const pull_t&);
void operator = (const pull_t&);
const pull_t &operator = (const pull_t&);
};

View File

@ -50,7 +50,7 @@ namespace zmq
lb_t lb;
push_t (const push_t&);
void operator = (const push_t&);
const push_t &operator = (const push_t&);
};
}

View File

@ -49,7 +49,7 @@ namespace zmq
bool request_begins;
rep_t (const rep_t&);
void operator = (const rep_t&);
const rep_t &operator = (const rep_t&);
};

View File

@ -49,7 +49,7 @@ namespace zmq
bool message_begins;
req_t (const req_t&);
void operator = (const req_t&);
const req_t &operator = (const req_t&);
};
}

View File

@ -106,7 +106,7 @@ namespace zmq
thread_t worker;
select_t (const select_t&);
void operator = (const select_t&);
const select_t &operator = (const select_t&);
};
}

View File

@ -77,7 +77,7 @@ namespace zmq
HANDLE ev;
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
@ -130,7 +130,7 @@ namespace zmq
pthread_mutex_t mutex;
semaphore_t (const semaphore_t&);
void operator = (const semaphore_t&);
const semaphore_t &operator = (const semaphore_t&);
};
#else
@ -175,7 +175,7 @@ namespace zmq
sem_t sem;
semaphore_t (const semaphore_t&);
void operator = (const semaphore_t&);
const semaphore_t &operator = (const semaphore_t&);
};
#endif

View File

@ -141,7 +141,7 @@ namespace zmq
} state;
session_t (const session_t&);
void operator = (const session_t&);
const session_t &operator = (const session_t&);
};
}

View File

@ -173,7 +173,7 @@ namespace zmq
mutex_t sessions_sync;
socket_base_t (const socket_base_t&);
void operator = (const socket_base_t&);
const socket_base_t &operator = (const socket_base_t&);
};
}

View File

@ -41,7 +41,7 @@ namespace zmq
private:
sub_t (const sub_t&);
void operator = (const sub_t&);
const sub_t &operator = (const sub_t&);
};
}

View File

@ -111,6 +111,10 @@ namespace zmq
char *write_buf;
int64_t write_buf_start_addr;
// Disable copying of the swap object.
swap_t (const swap_t&);
const swap_t &operator = (const swap_t&);
};
}

View File

@ -72,7 +72,7 @@ namespace zmq
fd_t s;
tcp_connecter_t (const tcp_connecter_t&);
void operator = (const tcp_connecter_t&);
const tcp_connecter_t &operator = (const tcp_connecter_t&);
};
}

View File

@ -64,7 +64,7 @@ namespace zmq
fd_t s;
tcp_listener_t (const tcp_listener_t&);
void operator = (const tcp_listener_t&);
const tcp_listener_t &operator = (const tcp_listener_t&);
};
}

View File

@ -63,7 +63,7 @@ namespace zmq
// Disable copy construction of tcp_socket.
tcp_socket_t (const tcp_socket_t&);
void operator = (const tcp_socket_t&);
const tcp_socket_t &operator = (const tcp_socket_t&);
};
}

View File

@ -69,7 +69,7 @@ namespace zmq
#endif
thread_t (const thread_t&);
void operator = (const thread_t&);
const thread_t &operator = (const thread_t&);
};
}

View File

@ -43,7 +43,7 @@ namespace zmq
void detached ();
transient_session_t (const transient_session_t&);
void operator = (const transient_session_t&);
const transient_session_t &operator = (const transient_session_t&);
};
}

View File

@ -49,7 +49,7 @@ namespace zmq
} next;
trie_t (const trie_t&);
void operator = (const trie_t&);
const trie_t &operator = (const trie_t&);
};
}

View File

@ -65,7 +65,7 @@ namespace zmq
bool terminating;
xpub_t (const xpub_t&);
void operator = (const xpub_t&);
const xpub_t &operator = (const xpub_t&);
};
}

View File

@ -106,7 +106,7 @@ namespace zmq
bool terminating;
xrep_t (const xrep_t&);
void operator = (const xrep_t&);
const xrep_t &operator = (const xrep_t&);
};
}

View File

@ -55,7 +55,7 @@ namespace zmq
lb_t lb;
xreq_t (const xreq_t&);
void operator = (const xreq_t&);
const xreq_t &operator = (const xreq_t&);
};
}

View File

@ -70,7 +70,7 @@ namespace zmq
bool more;
xsub_t (const xsub_t&);
void operator = (const xsub_t&);
const xsub_t &operator = (const xsub_t&);
};
}

View File

@ -200,7 +200,7 @@ namespace zmq
// Disable copying of ypipe object.
ypipe_t (const ypipe_t&);
void operator = (const ypipe_t&);
const ypipe_t &operator = (const ypipe_t&);
};
}

View File

@ -189,7 +189,7 @@ namespace zmq
// Disable copying of yqueue.
yqueue_t (const yqueue_t&);
void operator = (const yqueue_t&);
const yqueue_t &operator = (const yqueue_t&);
};
}

View File

@ -75,7 +75,7 @@ namespace zmq
class session_t *session;
zmq_connecter_t (const zmq_connecter_t&);
void operator = (const zmq_connecter_t&);
const zmq_connecter_t &operator = (const zmq_connecter_t&);
};
}

View File

@ -78,7 +78,7 @@ namespace zmq
bool plugged;
zmq_engine_t (const zmq_engine_t&);
void operator = (const zmq_engine_t&);
const zmq_engine_t &operator = (const zmq_engine_t&);
};
}

View File

@ -84,7 +84,7 @@ namespace zmq
class io_thread_t *io_thread;
zmq_init_t (const zmq_init_t&);
void operator = (const zmq_init_t&);
const zmq_init_t &operator = (const zmq_init_t&);
};
}

View File

@ -58,7 +58,7 @@ namespace zmq
class socket_base_t *socket;
zmq_listener_t (const zmq_listener_t&);
void operator = (const zmq_listener_t&);
const zmq_listener_t &operator = (const zmq_listener_t&);
};
}