From c23b5b5061025666c88e626036ec235ec81abba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Skrzy=C5=84ski?= Date: Thu, 9 May 2024 23:42:11 +0200 Subject: [PATCH] #2264: use const reference when possible --- src/vt/collective/basic.cc | 2 +- src/vt/collective/basic.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vt/collective/basic.cc b/src/vt/collective/basic.cc index 5baff8edb5..270157c75f 100644 --- a/src/vt/collective/basic.cc +++ b/src/vt/collective/basic.cc @@ -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) diff --git a/src/vt/collective/basic.h b/src/vt/collective/basic.h index 09e653a1a9..c7edab2385 100644 --- a/src/vt/collective/basic.h +++ b/src/vt/collective/basic.h @@ -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);