From 26222fd1b64303f20845fd5ca2da4709ffe527bc Mon Sep 17 00:00:00 2001 From: David Wells Date: Mon, 19 Jun 2017 16:41:34 -0400 Subject: [PATCH] Use constant strings in two places. --- source/base/parameter_handler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/base/parameter_handler.cc b/source/base/parameter_handler.cc index d26bdd7d3f..1b27be4699 100644 --- a/source/base/parameter_handler.cc +++ b/source/base/parameter_handler.cc @@ -602,7 +602,7 @@ namespace Patterns bool List::match (const std::string &test_string_list) const { - std::vector split_list = + const std::vector split_list = Utilities::split_string_list(test_string_list, separator); if ((split_list.size() < min_elements) || @@ -610,7 +610,7 @@ namespace Patterns return false; // check the different possibilities - for (auto &string : split_list) + for (const std::string &string : split_list) if (pattern->match (string) == false) return false; -- 2.39.5