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
f8adf9ea
Commit
f8adf9ea
authored
Dec 08, 2019
by
Simon Giesecke
Committed by
Simon Giesecke
Dec 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: unnecessary value parameters
Solution: change to const references
parent
cb2b377d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
socks.cpp
src/socks.cpp
+2
-2
socks.hpp
src/socks.hpp
+3
-2
socks_connecter.cpp
src/socks_connecter.cpp
+2
-2
socks_connecter.hpp
src/socks_connecter.hpp
+2
-2
No files found.
src/socks.cpp
View file @
f8adf9ea
...
...
@@ -130,7 +130,7 @@ void zmq::socks_choice_decoder_t::reset ()
zmq
::
socks_basic_auth_request_t
::
socks_basic_auth_request_t
(
std
::
string
username_
,
std
::
string
password_
)
:
const
std
::
string
&
username_
,
const
std
::
string
&
password_
)
:
username
(
username_
),
password
(
password_
)
{
...
...
@@ -306,7 +306,7 @@ void zmq::socks_request_encoder_t::reset ()
}
zmq
::
socks_response_t
::
socks_response_t
(
uint8_t
response_code_
,
std
::
string
address_
,
const
std
::
string
&
address_
,
uint16_t
port_
)
:
response_code
(
response_code_
),
address
(
address_
),
...
...
src/socks.hpp
View file @
f8adf9ea
...
...
@@ -84,7 +84,8 @@ class socks_choice_decoder_t
struct
socks_basic_auth_request_t
{
socks_basic_auth_request_t
(
std
::
string
username_
,
std
::
string
password_
);
socks_basic_auth_request_t
(
const
std
::
string
&
username_
,
const
std
::
string
&
password_
);
const
std
::
string
username
;
const
std
::
string
password
;
...
...
@@ -152,7 +153,7 @@ class socks_request_encoder_t
struct
socks_response_t
{
socks_response_t
(
uint8_t
response_code_
,
std
::
string
address_
,
const
std
::
string
&
address_
,
uint16_t
port_
);
uint8_t
response_code
;
std
::
string
address
;
...
...
src/socks_connecter.cpp
View file @
f8adf9ea
...
...
@@ -79,8 +79,8 @@ void zmq::socks_connecter_t::set_auth_method_none ()
_auth_password
.
clear
();
}
void
zmq
::
socks_connecter_t
::
set_auth_method_basic
(
const
std
::
string
username_
,
const
std
::
string
password_
)
void
zmq
::
socks_connecter_t
::
set_auth_method_basic
(
const
std
::
string
&
username_
,
const
std
::
string
&
password_
)
{
_auth_method
=
socks_basic_auth
;
_auth_username
=
username_
;
...
...
src/socks_connecter.hpp
View file @
f8adf9ea
...
...
@@ -54,8 +54,8 @@ class socks_connecter_t : public stream_connecter_base_t
bool
delayed_start_
);
~
socks_connecter_t
();
void
set_auth_method_basic
(
const
std
::
string
username
,
const
std
::
string
password
);
void
set_auth_method_basic
(
const
std
::
string
&
username
,
const
std
::
string
&
password
);
void
set_auth_method_none
();
...
...
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