Commit 2cd08a54 authored by Ghislain MARY's avatar Ghislain MARY

Fix build with GCC 4.8.

parent be2f7b33
...@@ -589,8 +589,8 @@ void Sal::addSupportedTag (const string &tag) { ...@@ -589,8 +589,8 @@ void Sal::addSupportedTag (const string &tag) {
} }
void Sal::removeSupportedTag (const string &tag) { void Sal::removeSupportedTag (const string &tag) {
auto it = find(mSupportedTags.cbegin(), mSupportedTags.cend(), tag); auto it = find(mSupportedTags.begin(), mSupportedTags.end(), tag);
if (it != mSupportedTags.cend()) { if (it != mSupportedTags.end()) {
mSupportedTags.erase(it); mSupportedTags.erase(it);
makeSupportedHeader(); makeSupportedHeader();
} }
...@@ -614,7 +614,7 @@ void Sal::setUserAgent (const string &value) { ...@@ -614,7 +614,7 @@ void Sal::setUserAgent (const string &value) {
const string &Sal::getUserAgent () const { const string &Sal::getUserAgent () const {
char userAgent[256]; 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; mUserAgent = userAgent;
return mUserAgent; return mUserAgent;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment