mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Fix operator< of ChatRoomId.
This commit is contained in:
parent
ace638771e
commit
2ad51e7a0e
1 changed files with 2 additions and 1 deletions
|
|
@ -61,7 +61,8 @@ bool ChatRoomId::operator!= (const ChatRoomId &chatRoomId) const {
|
|||
bool ChatRoomId::operator< (const ChatRoomId &chatRoomId) const {
|
||||
L_D();
|
||||
const ChatRoomIdPrivate *dChatRoomId = chatRoomId.getPrivate();
|
||||
return d->peerAddress < dChatRoomId->peerAddress || d->localAddress < dChatRoomId->localAddress;
|
||||
return d->peerAddress < dChatRoomId->peerAddress
|
||||
|| (d->peerAddress == dChatRoomId->peerAddress && d->localAddress < dChatRoomId->localAddress);
|
||||
}
|
||||
|
||||
const IdentityAddress &ChatRoomId::getPeerAddress () const {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue