Commit 0b9f51a1 authored by Marian Klymov's avatar Marian Klymov

Remove redundant calls to c_str

parent 8ef62b28
...@@ -3495,7 +3495,7 @@ bool SystemInformationImplementation::RetreiveInformationFromCpuInfoFile() ...@@ -3495,7 +3495,7 @@ bool SystemInformationImplementation::RetreiveInformationFromCpuInfoFile()
// Chip Model Name // Chip Model Name
this->ChipID.ModelName = this->ChipID.ModelName =
this->ExtractValueFromCpuInfoFile(buffer, "model name").c_str(); this->ExtractValueFromCpuInfoFile(buffer, "model name");
// L1 Cache size // L1 Cache size
// Different architectures may show different names for the caches. // Different architectures may show different names for the caches.
......
...@@ -686,7 +686,7 @@ public: ...@@ -686,7 +686,7 @@ public:
for (iterator i = this->begin(); i != this->end(); ++i) { for (iterator i = this->begin(); i != this->end(); ++i) {
# if defined(_WIN32) # if defined(_WIN32)
const std::string s = Encoding::ToNarrow(*i); const std::string s = Encoding::ToNarrow(*i);
kwsysUnPutEnv(s.c_str()); kwsysUnPutEnv(s);
# else # else
kwsysUnPutEnv(*i); kwsysUnPutEnv(*i);
# endif # endif
...@@ -3140,7 +3140,7 @@ void SystemTools::AddTranslationPath(const std::string& a, ...@@ -3140,7 +3140,7 @@ void SystemTools::AddTranslationPath(const std::string& a,
void SystemTools::AddKeepPath(const std::string& dir) void SystemTools::AddKeepPath(const std::string& dir)
{ {
std::string cdir; std::string cdir;
Realpath(SystemTools::CollapseFullPath(dir).c_str(), cdir); Realpath(SystemTools::CollapseFullPath(dir), cdir);
SystemTools::AddTranslationPath(cdir, dir); SystemTools::AddTranslationPath(cdir, dir);
} }
......
...@@ -206,7 +206,7 @@ static bool CheckFileOperations() ...@@ -206,7 +206,7 @@ static bool CheckFileOperations()
res = false; res = false;
} }
if (!kwsys::SystemTools::Touch(testNewFile.c_str(), true)) { if (!kwsys::SystemTools::Touch(testNewFile, true)) {
std::cerr << "Problem with Touch for: " << testNewFile << std::endl; std::cerr << "Problem with Touch for: " << testNewFile << std::endl;
res = false; res = false;
} }
...@@ -415,7 +415,7 @@ static bool CheckFileOperations() ...@@ -415,7 +415,7 @@ static bool CheckFileOperations()
res = false; res = false;
} }
kwsys::SystemTools::Touch(testNewFile.c_str(), true); kwsys::SystemTools::Touch(testNewFile, true);
if (!kwsys::SystemTools::RemoveADirectory(testNewDir)) { if (!kwsys::SystemTools::RemoveADirectory(testNewDir)) {
std::cerr << "Problem with RemoveADirectory for: " << testNewDir std::cerr << "Problem with RemoveADirectory for: " << testNewDir
<< std::endl; << std::endl;
...@@ -806,7 +806,7 @@ static bool CheckFind() ...@@ -806,7 +806,7 @@ static bool CheckFind()
const std::string testFindFile(TEST_SYSTEMTOOLS_BINARY_DIR "/" + const std::string testFindFile(TEST_SYSTEMTOOLS_BINARY_DIR "/" +
testFindFileName); testFindFileName);
if (!kwsys::SystemTools::Touch(testFindFile.c_str(), true)) { if (!kwsys::SystemTools::Touch(testFindFile, true)) {
std::cerr << "Problem with Touch for: " << testFindFile << std::endl; std::cerr << "Problem with Touch for: " << testFindFile << std::endl;
// abort here as the existence of the file only makes the test meaningful // abort here as the existence of the file only makes the test meaningful
return false; return false;
......
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