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
e45fddc2
Commit
e45fddc2
authored
Jan 29, 2014
by
Martin Hurton
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #861 from pavel-pimenov/master
[libzmq] const string p -> const string& p (#860)
parents
e436073b
5dd82a6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mechanism.cpp
src/mechanism.cpp
+2
-2
mechanism.hpp
src/mechanism.hpp
+2
-2
No files found.
src/mechanism.cpp
View file @
e45fddc2
...
...
@@ -133,7 +133,7 @@ int zmq::mechanism_t::parse_metadata (const unsigned char *ptr_,
return
0
;
}
int
zmq
::
mechanism_t
::
property
(
const
std
::
string
/* name_ */
,
int
zmq
::
mechanism_t
::
property
(
const
std
::
string
&
/* name_ */
,
const
void
*
/* value_ */
,
size_t
/* length_ */
)
{
// Default implementation does not check
...
...
@@ -141,7 +141,7 @@ int zmq::mechanism_t::property (const std::string /* name_ */,
return
0
;
}
bool
zmq
::
mechanism_t
::
check_socket_type
(
const
std
::
string
type_
)
const
bool
zmq
::
mechanism_t
::
check_socket_type
(
const
std
::
string
&
type_
)
const
{
switch
(
options
.
type
)
{
case
ZMQ_REQ
:
...
...
src/mechanism.hpp
View file @
e45fddc2
...
...
@@ -86,7 +86,7 @@ namespace zmq
// parsing remaining data.
// Derived classes are supposed to override this
// method to handle custom processing.
virtual
int
property
(
const
std
::
string
name_
,
virtual
int
property
(
const
std
::
string
&
name_
,
const
void
*
value_
,
size_t
length_
);
options_t
options
;
...
...
@@ -99,7 +99,7 @@ namespace zmq
// Returns true iff socket associated with the mechanism
// is compatible with a given socket type 'type_'.
bool
check_socket_type
(
const
std
::
string
type_
)
const
;
bool
check_socket_type
(
const
std
::
string
&
type_
)
const
;
};
}
...
...
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