Skip to content
Snippets Groups Projects
Commit 5b457cc6 authored by Elliot Oram's avatar Elliot Oram
Browse files

Fix for other long to int comparisons

Refs #13300
parent 7d572dc0
No related branches found
No related tags found
No related merge requests found
...@@ -40,9 +40,9 @@ StringContainsValidator::checkValidity(const std::string &value) const { ...@@ -40,9 +40,9 @@ StringContainsValidator::checkValidity(const std::string &value) const {
if (value.empty()) { if (value.empty()) {
error += "A value must be entered for this parameter."; error += "A value must be entered for this parameter.";
} else { } else {
int validityCount = 0; size_t validityCount = 0;
const size_t total = m_requiredStrings.size(); const size_t total = m_requiredStrings.size();
for (int i = 0; i < total; i++) { for (size_t i = 0; i < total; i++) {
auto position = value.find(m_requiredStrings.at(i)); auto position = value.find(m_requiredStrings.at(i));
if (position != std::string::npos) { if (position != std::string::npos) {
validityCount++; validityCount++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment