summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-16 18:26:47 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-17 16:43:56 (GMT)
commit2e5307a2a45d456b7fb52e4d3fab1416dc9a1bd8 (patch)
treed919682c747ea186076a6cf781a44cdc7e7264d0 /Source/CTest
parent68e20f674a48be38d60e129f600faf7c483f2b97 (diff)
downloadCMake-2e5307a2a45d456b7fb52e4d3fab1416dc9a1bd8.zip
CMake-2e5307a2a45d456b7fb52e4d3fab1416dc9a1bd8.tar.gz
CMake-2e5307a2a45d456b7fb52e4d3fab1416dc9a1bd8.tar.bz2
CTestSVN: Accept std::string in SVNInfo constructor
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestSVN.cxx2
-rw-r--r--Source/CTest/cmCTestSVN.h2
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)
{
}