Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
louiz’
biboumi
Commits
142516a6
Commit
142516a6
authored
Oct 26, 2015
by
louiz’
Browse files
Fix some trivial issues reported by cppcheck
parent
0fcba76c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
4 deletions
+3
-4
louloulibs/network/tcp_socket_handler.cpp
louloulibs/network/tcp_socket_handler.cpp
+1
-1
src/irc/irc_client.cpp
src/irc/irc_client.cpp
+0
-1
src/xmpp/biboumi_component.cpp
src/xmpp/biboumi_component.cpp
+1
-1
src/xmpp/biboumi_component.hpp
src/xmpp/biboumi_component.hpp
+1
-1
No files found.
louloulibs/network/tcp_socket_handler.cpp
View file @
142516a6
...
@@ -247,7 +247,7 @@ void TCPSocketHandler::on_send()
...
@@ -247,7 +247,7 @@ void TCPSocketHandler::on_send()
struct
msghdr
msg
{
nullptr
,
0
,
struct
msghdr
msg
{
nullptr
,
0
,
msg_iov
,
msg_iov
,
0
,
nullptr
,
0
,
0
};
0
,
nullptr
,
0
,
0
};
for
(
std
::
string
&
s
:
this
->
out_buf
)
for
(
const
std
::
string
&
s
:
this
->
out_buf
)
{
{
// unconsting the content of s is ok, sendmsg will never modify it
// unconsting the content of s is ok, sendmsg will never modify it
msg_iov
[
msg
.
msg_iovlen
].
iov_base
=
const_cast
<
char
*>
(
s
.
data
());
msg_iov
[
msg
.
msg_iovlen
].
iov_base
=
const_cast
<
char
*>
(
s
.
data
());
...
...
src/irc/irc_client.cpp
View file @
142516a6
...
@@ -888,7 +888,6 @@ void IrcClient::on_unknown_message(const IrcMessage& message)
...
@@ -888,7 +888,6 @@ void IrcClient::on_unknown_message(const IrcMessage& message)
if
(
message
.
arguments
.
size
()
<
2
)
if
(
message
.
arguments
.
size
()
<
2
)
return
;
return
;
std
::
string
from
=
message
.
prefix
;
std
::
string
from
=
message
.
prefix
;
const
std
::
string
to
=
message
.
arguments
[
0
];
std
::
stringstream
ss
;
std
::
stringstream
ss
;
for
(
auto
it
=
message
.
arguments
.
begin
()
+
1
;
it
!=
message
.
arguments
.
end
();
++
it
)
for
(
auto
it
=
message
.
arguments
.
begin
()
+
1
;
it
!=
message
.
arguments
.
end
();
++
it
)
{
{
...
...
src/xmpp/biboumi_component.cpp
View file @
142516a6
...
@@ -579,7 +579,7 @@ void BiboumiComponent::send_ping_request(const std::string& from,
...
@@ -579,7 +579,7 @@ void BiboumiComponent::send_ping_request(const std::string& from,
}
}
void
BiboumiComponent
::
send_iq_room_list_result
(
const
std
::
string
&
id
,
void
BiboumiComponent
::
send_iq_room_list_result
(
const
std
::
string
&
id
,
const
std
::
string
to_jid
,
const
std
::
string
&
to_jid
,
const
std
::
string
&
from
,
const
std
::
string
&
from
,
const
std
::
vector
<
ListElement
>&
rooms_list
)
const
std
::
vector
<
ListElement
>&
rooms_list
)
{
{
...
...
src/xmpp/biboumi_component.hpp
View file @
142516a6
...
@@ -66,7 +66,7 @@ public:
...
@@ -66,7 +66,7 @@ public:
/**
/**
* Send the channels list in one big stanza
* Send the channels list in one big stanza
*/
*/
void
send_iq_room_list_result
(
const
std
::
string
&
id
,
const
std
::
string
to_jid
,
void
send_iq_room_list_result
(
const
std
::
string
&
id
,
const
std
::
string
&
to_jid
,
const
std
::
string
&
from
,
const
std
::
string
&
from
,
const
std
::
vector
<
ListElement
>&
rooms_list
);
const
std
::
vector
<
ListElement
>&
rooms_list
);
/**
/**
...
...
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