From 0dfbe56d495630c71c689ecf812ca0d1d2d7625a Mon Sep 17 00:00:00 2001
From: Ben Boeckel <ben.boeckel@kitware.com>
Date: Thu, 31 Jul 2014 13:15:54 -0400
Subject: [PATCH] SystemTools: use strings for making C identifiers

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

diff --git a/SystemTools.cxx b/SystemTools.cxx
index 1ad91e5..b2a4963 100644
--- a/SystemTools.cxx
+++ b/SystemTools.cxx
@@ -4442,7 +4442,7 @@ kwsys_stl::string SystemTools::GetCurrentDateTime(const char* format)
   return kwsys_stl::string(buf);
 }
 
-kwsys_stl::string SystemTools::MakeCidentifier(const char* s)
+kwsys_stl::string SystemTools::MakeCidentifier(const kwsys_stl::string& s)
 {
   kwsys_stl::string str(s);
   if (str.find_first_of("0123456789") == 0)
diff --git a/SystemTools.hxx.in b/SystemTools.hxx.in
index 01d816b..cef74a3 100644
--- a/SystemTools.hxx.in
+++ b/SystemTools.hxx.in
@@ -89,9 +89,9 @@ public:
    * then an underscore is prepended.  Note that this can produce
    * identifiers that the standard reserves (_[A-Z].* and __.*).
    */
-  static kwsys_stl::string MakeCidentifier(const char* s);
+  static kwsys_stl::string MakeCidentifier(const kwsys_stl::string& s);
 
-  static kwsys_stl::string MakeCindentifier(const char* s)
+  static kwsys_stl::string MakeCindentifier(const kwsys_stl::string& s)
   {
     return MakeCidentifier(s);
   }
-- 
GitLab