Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
4b6b2cbf
Commit
4b6b2cbf
authored
Sep 12, 2013
by
Tristan Matthews
Browse files
* #29736: presence: pass strings as references
parent
23942f87
Changes
2
Hide whitespace changes
Inline
Side-by-side
daemon/src/sip/pres_sub_client.cpp
View file @
4b6b2cbf
...
@@ -327,10 +327,10 @@ std::string PresSubClient::getLineStatus()
...
@@ -327,10 +327,10 @@ std::string PresSubClient::getLineStatus()
return
std
::
string
(
status_
.
info
[
0
].
rpid
.
note
.
ptr
,
status_
.
info
[
0
].
rpid
.
note
.
slen
);
return
std
::
string
(
status_
.
info
[
0
].
rpid
.
note
.
ptr
,
status_
.
info
[
0
].
rpid
.
note
.
slen
);
}
}
bool
PresSubClient
::
isTermReason
(
std
::
string
reason
)
bool
PresSubClient
::
isTermReason
(
const
std
::
string
&
reason
)
{
{
std
::
string
myReason
(
term_reason_
.
ptr
,
term_reason_
.
slen
);
const
std
::
string
myReason
(
term_reason_
.
ptr
,
term_reason_
.
slen
);
return
!
myReason
.
compare
(
reason
);
return
not
myReason
.
compare
(
reason
);
}
}
void
PresSubClient
::
rescheduleTimer
(
bool
reschedule
,
unsigned
msec
)
void
PresSubClient
::
rescheduleTimer
(
bool
reschedule
,
unsigned
msec
)
...
...
daemon/src/sip/pres_sub_client.h
View file @
4b6b2cbf
...
@@ -155,7 +155,7 @@ class PresSubClient {
...
@@ -155,7 +155,7 @@ class PresSubClient {
/*
/*
* Compare the reason of a transaction end with the given string.
* Compare the reason of a transaction end with the given string.
*/
*/
bool
isTermReason
(
std
::
string
);
bool
isTermReason
(
const
std
::
string
&
);
/**
/**
* return the code after a transaction is terminated.
* return the code after a transaction is terminated.
*/
*/
...
...
Write
Preview
Supports
Markdown
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