File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -377,9 +377,7 @@ extern "C" {
377
377
RESET_ERROR_CODE ();
378
378
symbol _s = to_symbol (s);
379
379
if (_s.is_numerical ()) {
380
- std::ostringstream buffer;
381
- buffer << _s.get_num ();
382
- return mk_c (c)->mk_external_string (buffer.str ());
380
+ return mk_c (c)->mk_external_string (std::to_string (_s.get_num ()));
383
381
}
384
382
else {
385
383
return mk_c (c)->mk_external_string (_s.str ());
@@ -823,7 +821,7 @@ extern "C" {
823
821
param_descrs descrs;
824
822
th_rewriter::get_param_descrs (descrs);
825
823
descrs.display (buffer);
826
- return mk_c (c)->mk_external_string (buffer.str ());
824
+ return mk_c (c)->mk_external_string (std::move ( buffer) .str ());
827
825
Z3_CATCH_RETURN (" " );
828
826
}
829
827
@@ -1031,7 +1029,7 @@ extern "C" {
1031
1029
default :
1032
1030
UNREACHABLE ();
1033
1031
}
1034
- return mk_c (c)->mk_external_string (buffer.str ());
1032
+ return mk_c (c)->mk_external_string (std::move ( buffer) .str ());
1035
1033
Z3_CATCH_RETURN (nullptr );
1036
1034
}
1037
1035
@@ -1066,7 +1064,7 @@ extern "C" {
1066
1064
pp.add_assumption (to_expr (assumptions[i]));
1067
1065
}
1068
1066
pp.display_smt2 (buffer, to_expr (formula));
1069
- return mk_c (c)->mk_external_string (buffer.str ());
1067
+ return mk_c (c)->mk_external_string (std::move ( buffer) .str ());
1070
1068
Z3_CATCH_RETURN (" " );
1071
1069
}
1072
1070
You can’t perform that action at this time.
0 commit comments