From: David Wells Date: Mon, 19 Jun 2017 20:41:34 +0000 (-0400) Subject: Use constant strings in two places. X-Git-Tag: v9.0.0-rc1~1490^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26222fd1b64303f20845fd5ca2da4709ffe527bc;p=dealii.git Use constant strings in two places. --- 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;