Rename variable

This commit is contained in:
Kristian Flikka
2013-04-04 15:57:21 +02:00
parent 041ac87337
commit b200d74c9d

View File

@@ -61,8 +61,8 @@ namespace Opm {
bool RawRecord::isCompleteRecordString(const std::string& candidateRecordString) {
unsigned int terminatingSlash = findTerminatingSlash(candidateRecordString);
bool hasTerminatingSlash = (terminatingSlash < candidateRecordString.size());
int size = std::count(candidateRecordString.begin(), candidateRecordString.end(), QUOTE);
bool hasEvenNumberOfQuotes = (size % 2) == 0;
int numberOfQuotes = std::count(candidateRecordString.begin(), candidateRecordString.end(), QUOTE);
bool hasEvenNumberOfQuotes = (numberOfQuotes % 2) == 0;
return hasTerminatingSlash && hasEvenNumberOfQuotes;
}