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
76e0153d
Commit
76e0153d
authored
Jun 10, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue 33 - missing virtual destructors
parent
d329c55d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
decoder.hpp
src/decoder.hpp
+3
-1
encoder.hpp
src/encoder.hpp
+2
-0
yarray_item.hpp
src/yarray_item.hpp
+3
-1
ypipe.hpp
src/ypipe.hpp
+6
-0
No files found.
src/decoder.hpp
View file @
76e0153d
...
...
@@ -55,7 +55,9 @@ namespace zmq
zmq_assert
(
buf
);
}
inline
~
decoder_t
()
// The destructor doesn't have to be virtual. It is mad virtual
// just to keep ICC and code checking tools from complaining.
inline
virtual
~
decoder_t
()
{
free
(
buf
);
}
...
...
src/encoder.hpp
View file @
76e0153d
...
...
@@ -50,6 +50,8 @@ namespace zmq
zmq_assert
(
buf
);
}
// The destructor doesn't have to be virtual. It is mad virtual
// just to keep ICC and code checking tools from complaining.
inline
~
encoder_t
()
{
free
(
buf
);
...
...
src/yarray_item.hpp
View file @
76e0153d
...
...
@@ -35,7 +35,9 @@ namespace zmq
{
}
inline
~
yarray_item_t
()
// The destructor doesn't have to be virtual. It is mad virtual
// just to keep ICC and code checking tools from complaining.
inline
virtual
~
yarray_item_t
()
{
}
...
...
src/ypipe.hpp
View file @
76e0153d
...
...
@@ -50,6 +50,12 @@ namespace zmq
c
.
set
(
&
queue
.
back
());
}
// The destructor doesn't have to be virtual. It is mad virtual
// just to keep ICC and code checking tools from complaining.
inline
virtual
~
ypipe_t
()
{
}
// Following function (write) deliberately copies uninitialised data
// when used with zmq_msg. Initialising the VSM body for
// non-VSM messages won't be good for performance.
...
...
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