Skip to content

Commit 00217f9

Browse files
author
Daniel Kroening
committed
use split_string that returns its result
1 parent 0881bf2 commit 00217f9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/goto-instrument/unwindset.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ void unwindsett::parse_unwind(const std::string &unwind)
2323

2424
void unwindsett::parse_unwindset(const std::string &unwindset)
2525
{
26-
std::vector<std::string> unwindset_loops;
27-
split_string(unwindset, ',', unwindset_loops, true, true);
26+
std::vector<std::string> unwindset_loops =
27+
split_string(unwindset, ',', true, true);
2828

2929
for(auto &val : unwindset_loops)
3030
{

src/util/config.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,8 +1301,8 @@ void configt::set_classpath(const std::string &cp)
13011301
const char cp_separator = ':';
13021302
#endif
13031303

1304-
std::vector<std::string> class_path;
1305-
split_string(cp, cp_separator, class_path);
1304+
std::vector<std::string> class_path =
1305+
split_string(cp, cp_separator);
13061306
java.classpath.insert(
13071307
java.classpath.end(), class_path.begin(), class_path.end());
13081308
}

src/util/unwrap_nested_exception.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Author: Diffblue Ltd.
2424
std::string unwrap_exception(const std::exception &e, int level)
2525
{
2626
const std::string msg = e.what();
27-
std::vector<std::string> lines;
28-
split_string(msg, '\n', lines, false, true);
27+
std::vector<std::string> lines =
28+
split_string(msg, '\n', false, true);
2929
std::ostringstream message_stream;
3030
message_stream << std::string(level, ' ') << "exception: ";
3131
join_strings(

0 commit comments

Comments
 (0)