mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Fix build with GCC 4.8.
This commit is contained in:
parent
be2f7b33df
commit
2cd08a542f
1 changed files with 3 additions and 3 deletions
|
|
@ -589,8 +589,8 @@ void Sal::addSupportedTag (const string &tag) {
|
|||
}
|
||||
|
||||
void Sal::removeSupportedTag (const string &tag) {
|
||||
auto it = find(mSupportedTags.cbegin(), mSupportedTags.cend(), tag);
|
||||
if (it != mSupportedTags.cend()) {
|
||||
auto it = find(mSupportedTags.begin(), mSupportedTags.end(), tag);
|
||||
if (it != mSupportedTags.end()) {
|
||||
mSupportedTags.erase(it);
|
||||
makeSupportedHeader();
|
||||
}
|
||||
|
|
@ -614,7 +614,7 @@ void Sal::setUserAgent (const string &value) {
|
|||
|
||||
const string &Sal::getUserAgent () const {
|
||||
char userAgent[256];
|
||||
belle_sip_header_user_agent_get_products_as_string(mUserAgentHeader, userAgent, sizeof(userAgent) - 1);
|
||||
belle_sip_header_user_agent_get_products_as_string(mUserAgentHeader, userAgent, (unsigned int)sizeof(userAgent) - 1);
|
||||
mUserAgent = userAgent;
|
||||
return mUserAgent;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue