Commit 0dfbe56d authored by Ben Boeckel's avatar Ben Boeckel
Browse files

SystemTools: use strings for making C identifiers

Change-Id: I10443509ce843233599ea2a4e9d02ff4d0a7dc3e
parent f3fb01cf
......@@ -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)
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment