aboutsummaryrefslogtreecommitdiff
path: root/test/skip_with_error_test.cc
diff options
context:
space:
mode:
authordominic <510002+dmah42@users.noreply.github.com>2023-03-14 13:10:27 +0000
committerGitHub <noreply@github.com>2023-03-14 13:10:27 +0000
commit46d3c84518ee71e36fa42c50b1fe3758a45d1d3b (patch)
treecb7a86325132efe1dfad0e3517bae4cccf94bf9f /test/skip_with_error_test.cc
parent68aa1903b18f6967a608f3584db3eac28a4f883c (diff)
downloadgoogle-benchmark-46d3c84518ee71e36fa42c50b1fe3758a45d1d3b.tar.gz
Convert uses of `const char*` to `std::string` (#1567)
* Convert uses of const char* to std::string * fix sanitizer builds * reformat user guide * include python bindings * clang-format
Diffstat (limited to 'test/skip_with_error_test.cc')
-rw-r--r--test/skip_with_error_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/skip_with_error_test.cc b/test/skip_with_error_test.cc
index 2dd222a..b4c5e15 100644
--- a/test/skip_with_error_test.cc
+++ b/test/skip_with_error_test.cc
@@ -48,7 +48,8 @@ struct TestCase {
std::vector<TestCase> ExpectedResults;
-int AddCases(const char* base_name, std::initializer_list<TestCase> const& v) {
+int AddCases(const std::string& base_name,
+ std::initializer_list<TestCase> const& v) {
for (auto TC : v) {
TC.name = base_name + TC.name;
ExpectedResults.push_back(std::move(TC));