@@ -54,19 +54,16 @@ void unwindsett::parse_unwindset_one_loop(std::string val)
5454 }
5555}
5656
57- void unwindsett::parse_unwindset (const std::string &unwindset)
58- {
59- std::vector<std::string> unwindset_elements =
60- split_string (unwindset, ' ,' , true , true );
61-
62- for (auto &element : unwindset_elements)
63- parse_unwindset_one_loop (element);
64- }
65-
6657void unwindsett::parse_unwindset (const std::list<std::string> &unwindset)
6758{
6859 for (auto &element : unwindset)
69- parse_unwindset (element);
60+ {
61+ std::vector<std::string> unwindset_elements =
62+ split_string (element, ' ,' , true , true );
63+
64+ for (auto &element : unwindset_elements)
65+ parse_unwindset_one_loop (element);
66+ }
7067}
7168
7269optionalt<unsigned >
@@ -104,5 +101,10 @@ void unwindsett::parse_unwindset_file(const std::string &file_name)
104101
105102 std::stringstream buffer;
106103 buffer << file.rdbuf ();
107- parse_unwindset (buffer.str ());
104+
105+ std::vector<std::string> unwindset_elements =
106+ split_string (buffer.str (), ' ,' , true , true );
107+
108+ for (auto &element : unwindset_elements)
109+ parse_unwindset_one_loop (element);
108110}
0 commit comments