mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -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:
@@ -69,7 +69,7 @@ void cmCursesPathWidget::OnTab(cmCursesMainForm* fm, WINDOW* w)
|
||||
cstr = cstr.substr(0, cstr.size()-1);
|
||||
}
|
||||
|
||||
if ( cmSystemTools::FileIsDirectory(cstr.c_str()) )
|
||||
if ( cmSystemTools::FileIsDirectory(cstr) )
|
||||
{
|
||||
cstr += "/";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user