From 2e5307a2a45d456b7fb52e4d3fab1416dc9a1bd8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 16 Jan 2019 13:26:47 -0500 Subject: CTestSVN: Accept std::string in SVNInfo constructor --- Source/CTest/cmCTestSVN.cxx | 2 +- Source/CTest/cmCTestSVN.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CTest/cmCTestSVN.cxx b/Source/CTest/cmCTestSVN.cxx index 6c439e9..21f5e1c 100644 --- a/Source/CTest/cmCTestSVN.cxx +++ b/Source/CTest/cmCTestSVN.cxx @@ -521,7 +521,7 @@ private: } else { local_path = path; } - this->SVN->Repositories.emplace_back(local_path.c_str()); + this->SVN->Repositories.emplace_back(local_path); } }; diff --git a/Source/CTest/cmCTestSVN.h b/Source/CTest/cmCTestSVN.h index a467ede..5c8505d 100644 --- a/Source/CTest/cmCTestSVN.h +++ b/Source/CTest/cmCTestSVN.h @@ -41,7 +41,7 @@ private: struct SVNInfo { - SVNInfo(const char* path) + SVNInfo(std::string const& path = std::string()) : LocalPath(path) { } -- cgit v0.12