Skip to content

Commit

Permalink
#2264: use const reference when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs authored and cwschilly committed Sep 20, 2024
1 parent d8054a9 commit c23b5b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vt/collective/basic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void abort(std::string const str, int32_t const code) {
}

void output(
std::string const str, int32_t const code, bool error, bool formatted,
std::string const& str, int32_t const code, bool error, bool formatted,
bool decorate, bool abort_out
) {
#if !vt_check_enabled(trace_only)
Expand Down
2 changes: 1 addition & 1 deletion src/vt/collective/basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace vt {

void abort(std::string const str = "", int32_t const code = 1);
void output(
std::string const str, int32_t const code = 1, bool error = false,
std::string const& str, int32_t const code = 1, bool error = false,
bool decorate = true, bool formatted = false, bool abort_out = false
);
int rerror(char const* str);
Expand Down

0 comments on commit c23b5b5

Please sign in to comment.