소스 검색

Merge pull request #350 from ilsalvopss/candidate_compare

Candidate == operator compares also mNode and mService
Paul-Louis Ageneau 4 년 전
부모
커밋
a936fed022
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/candidate.cpp

+ 3 - 1
src/candidate.cpp

@@ -220,7 +220,9 @@ Candidate::operator string() const {
 }
 
 bool Candidate::operator==(const Candidate &other) const {
-	return mFoundation == other.mFoundation;
+	return (mFoundation == other.mFoundation &&
+	        mService == other.mService &&
+	        mNode == other.mNode);
 }
 
 bool Candidate::operator!=(const Candidate &other) const {