mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 00:59:19 -06:00
strings: Remove redundant calls to std::string::c_str()
Replacements were detected and performed by the clang tool remove-cstr-calls on a linux build.
This commit is contained in:
@@ -97,7 +97,7 @@ std::string cmFindProgramCommand
|
||||
std::string executable = GetBundleExecutable(appPath);
|
||||
if (!executable.empty())
|
||||
{
|
||||
return cmSystemTools::CollapseFullPath(executable.c_str());
|
||||
return cmSystemTools::CollapseFullPath(executable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user