logging: use std::string_view

This commit is contained in:
Anthony Towns
2024-07-12 12:40:05 +10:00
parent 558df5c733
commit b4dd7ab43e
3 changed files with 28 additions and 29 deletions

View File

@@ -58,7 +58,7 @@ static const std::string STRING_WITH_EMBEDDED_NULL_CHAR{"1"s "\0" "1"s};
/* defined in logging.cpp */
namespace BCLog {
std::string LogEscapeMessage(const std::string& str);
std::string LogEscapeMessage(std::string_view str);
}
BOOST_FIXTURE_TEST_SUITE(util_tests, BasicTestingSetup)