Browse Source

CTestSVN: Accept std::string in SVNInfo constructor

Brad King 6 years ago
parent
commit
2e5307a2a4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Source/CTest/cmCTestSVN.cxx
  2. 1 1
      Source/CTest/cmCTestSVN.h

+ 1 - 1
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);
   }
 };
 

+ 1 - 1
Source/CTest/cmCTestSVN.h

@@ -41,7 +41,7 @@ private:
   struct SVNInfo
   {
 
-    SVNInfo(const char* path)
+    SVNInfo(std::string const& path = std::string())
       : LocalPath(path)
     {
     }