Browse Source

Cosmetic fixes in Description

Paul-Louis Ageneau 4 years ago
parent
commit
5af414d0df
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/description.cpp

+ 3 - 3
src/description.cpp

@@ -172,8 +172,8 @@ void Description::setFingerprint(string fingerprint) {
 }
 
 bool Description::hasCandidate(const Candidate &candidate) const {
-	for (const Candidate &existing : mCandidates)
-		if (existing == candidate)
+	for (const Candidate &other : mCandidates)
+		if (candidate == other)
 			return true;
 
 	return false;
@@ -182,7 +182,7 @@ bool Description::hasCandidate(const Candidate &candidate) const {
 void Description::addCandidate(Candidate candidate) {
 	candidate.hintMid(bundleMid());
 
-	for (Candidate &other : mCandidates)
+	for (const Candidate &other : mCandidates)
 		if (candidate == other)
 			return;