From e9204f8f3977d204f5d9a5abf4aaaa4701495351 Mon Sep 17 00:00:00 2001
From: Ben Boeckel <mathstuf@gmail.com>
Date: Tue, 11 Mar 2014 13:24:27 -0400
Subject: [PATCH] SystemTools: Take strings in AddKeepPath

Change-Id: Ia355093ee73937ecb276a42bac2b837e3fe496b5
---
 SystemTools.cxx    | 2 +-
 SystemTools.hxx.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/SystemTools.cxx b/SystemTools.cxx
index 0564ee1..bef8d84 100644
--- a/SystemTools.cxx
+++ b/SystemTools.cxx
@@ -3085,7 +3085,7 @@ void SystemTools::AddTranslationPath(const kwsys_stl::string& a, const kwsys_stl
     }
 }
 
-void SystemTools::AddKeepPath(const char* dir)
+void SystemTools::AddKeepPath(const kwsys_stl::string& dir)
 {
   kwsys_stl::string cdir;
   Realpath(SystemTools::CollapseFullPath(dir).c_str(), cdir);
diff --git a/SystemTools.hxx.in b/SystemTools.hxx.in
index 41069a9..fb55848 100644
--- a/SystemTools.hxx.in
+++ b/SystemTools.hxx.in
@@ -812,7 +812,7 @@ public:
    * If dir is different after CollapseFullPath is called,
    * Then insert it into the path translation table
    */
-  static void AddKeepPath(const char* dir);
+  static void AddKeepPath(const kwsys_stl::string& dir);
 
   /**
    * Update path by going through the Path Translation table;
-- 
GitLab