Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
18f29ded
Commit
18f29ded
authored
Jan 13, 2011
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make cppcheck not complain about "'operator=' should return something"
Signed-off-by:
Martin Sustrik
<
sustrik@250bpm.com
>
parent
70513871
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
59 additions
and
55 deletions
+59
-55
array.hpp
src/array.hpp
+2
-2
atomic_counter.hpp
src/atomic_counter.hpp
+1
-1
atomic_ptr.hpp
src/atomic_ptr.hpp
+1
-1
clock.hpp
src/clock.hpp
+1
-1
connect_session.hpp
src/connect_session.hpp
+1
-1
ctx.hpp
src/ctx.hpp
+1
-1
decoder.hpp
src/decoder.hpp
+1
-1
devpoll.hpp
src/devpoll.hpp
+1
-1
encoder.hpp
src/encoder.hpp
+1
-1
epoll.hpp
src/epoll.hpp
+1
-1
fq.hpp
src/fq.hpp
+1
-1
io_object.hpp
src/io_object.hpp
+1
-1
kqueue.hpp
src/kqueue.hpp
+1
-1
lb.hpp
src/lb.hpp
+1
-1
mailbox.hpp
src/mailbox.hpp
+1
-1
mutex.hpp
src/mutex.hpp
+1
-1
named_session.hpp
src/named_session.hpp
+1
-1
object.hpp
src/object.hpp
+1
-1
own.hpp
src/own.hpp
+1
-1
pair.hpp
src/pair.hpp
+1
-1
pgm_receiver.hpp
src/pgm_receiver.hpp
+1
-1
pgm_sender.hpp
src/pgm_sender.hpp
+1
-1
pipe.hpp
src/pipe.hpp
+2
-2
poll.hpp
src/poll.hpp
+1
-1
poller_base.hpp
src/poller_base.hpp
+1
-1
pub.hpp
src/pub.hpp
+1
-1
pull.hpp
src/pull.hpp
+1
-1
push.hpp
src/push.hpp
+1
-1
rep.hpp
src/rep.hpp
+1
-1
req.hpp
src/req.hpp
+1
-1
select.hpp
src/select.hpp
+1
-1
semaphore.hpp
src/semaphore.hpp
+3
-3
session.hpp
src/session.hpp
+1
-1
socket_base.hpp
src/socket_base.hpp
+1
-1
sub.hpp
src/sub.hpp
+1
-1
swap.hpp
src/swap.hpp
+4
-0
tcp_connecter.hpp
src/tcp_connecter.hpp
+1
-1
tcp_listener.hpp
src/tcp_listener.hpp
+1
-1
tcp_socket.hpp
src/tcp_socket.hpp
+1
-1
thread.hpp
src/thread.hpp
+1
-1
transient_session.hpp
src/transient_session.hpp
+1
-1
trie.hpp
src/trie.hpp
+1
-1
xpub.hpp
src/xpub.hpp
+1
-1
xrep.hpp
src/xrep.hpp
+1
-1
xreq.hpp
src/xreq.hpp
+1
-1
xsub.hpp
src/xsub.hpp
+1
-1
ypipe.hpp
src/ypipe.hpp
+1
-1
yqueue.hpp
src/yqueue.hpp
+1
-1
zmq_connecter.hpp
src/zmq_connecter.hpp
+1
-1
zmq_engine.hpp
src/zmq_engine.hpp
+1
-1
zmq_init.hpp
src/zmq_init.hpp
+1
-1
zmq_listener.hpp
src/zmq_listener.hpp
+1
-1
No files found.
src/array.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/atomic_counter.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/atomic_ptr.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/clock.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/connect_session.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/ctx.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/decoder.hpp
View file @
18f29ded
...
...
@@ -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.
...
...
src/devpoll.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/encoder.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/epoll.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/fq.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/io_object.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/kqueue.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/lb.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/mailbox.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/mutex.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/named_session.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/object.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/own.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/pair.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/pgm_receiver.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/pgm_sender.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/pipe.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/poll.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/poller_base.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/pub.hpp
View file @
18f29ded
...
...
@@ -35,7 +35,7 @@ namespace zmq
private
:
pub_t
(
const
pub_t
&
);
void
operator
=
(
const
pub_t
&
);
const
pub_t
&
operator
=
(
const
pub_t
&
);
};
}
...
...
src/pull.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
...
...
src/push.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/rep.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
...
...
src/req.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/select.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/semaphore.hpp
View file @
18f29ded
...
...
@@ -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
...
...
src/session.hpp
View file @
18f29ded
...
...
@@ -141,7 +141,7 @@ namespace zmq
}
state
;
session_t
(
const
session_t
&
);
void
operator
=
(
const
session_t
&
);
const
session_t
&
operator
=
(
const
session_t
&
);
};
}
...
...
src/socket_base.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/sub.hpp
View file @
18f29ded
...
...
@@ -41,7 +41,7 @@ namespace zmq
private
:
sub_t
(
const
sub_t
&
);
void
operator
=
(
const
sub_t
&
);
const
sub_t
&
operator
=
(
const
sub_t
&
);
};
}
...
...
src/swap.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/tcp_connecter.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/tcp_listener.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/tcp_socket.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/thread.hpp
View file @
18f29ded
...
...
@@ -69,7 +69,7 @@ namespace zmq
#endif
thread_t
(
const
thread_t
&
);
void
operator
=
(
const
thread_t
&
);
const
thread_t
&
operator
=
(
const
thread_t
&
);
};
}
...
...
src/transient_session.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/trie.hpp
View file @
18f29ded
...
...
@@ -49,7 +49,7 @@ namespace zmq
}
next
;
trie_t
(
const
trie_t
&
);
void
operator
=
(
const
trie_t
&
);
const
trie_t
&
operator
=
(
const
trie_t
&
);
};
}
...
...
src/xpub.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/xrep.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/xreq.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/xsub.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/ypipe.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/yqueue.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/zmq_connecter.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/zmq_engine.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/zmq_init.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
src/zmq_listener.hpp
View file @
18f29ded
...
...
@@ -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
&
);
};
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment