Bläddra i källkod

Cosmetic fixes in Description

Paul-Louis Ageneau 4 år sedan
förälder
incheckning
5af414d0df
1 ändrade filer med 3 tillägg och 3 borttagningar
  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;