mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
Fix build broken by previous merge.
This commit is contained in:
parent
711495218a
commit
4eef6f1fcd
1 changed files with 12 additions and 1 deletions
|
|
@ -133,7 +133,18 @@ bool ContentType::weakEqual (const ContentType &other) const {
|
|||
}
|
||||
|
||||
bool ContentType::operator== (const ContentType &other) const {
|
||||
return weakEqual(other) && (getParameter() == other.getParameter());
|
||||
if (!weakEqual(other))
|
||||
return false;
|
||||
if (getParameters().size() != other.getParameters().size())
|
||||
return false;
|
||||
for (const auto ¶m : getParameters()) {
|
||||
auto it = other.findParameter(param.getName());
|
||||
if (it == other.getParameters().cend())
|
||||
return false;
|
||||
if (it->getValue() != param.getValue())
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ContentType::operator!= (const ContentType &other) const {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue