diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-08-07 15:27:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-08-07 19:28:24 (GMT) |
commit | 69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f (patch) | |
tree | f323fcadf3c4e11227a0eea006ae7bfa17e8d26c /Source/cmUseMangledMesaCommand.cxx | |
parent | d7a52f8c24a29ff7f64b00566b646f2d125d4ac0 (diff) | |
download | CMake-69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f.zip CMake-69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f.tar.gz CMake-69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f.tar.bz2 |
Remove unnecessary c_str() in RegularExpression::find calls
Diffstat (limited to 'Source/cmUseMangledMesaCommand.cxx')
-rw-r--r-- | Source/cmUseMangledMesaCommand.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmUseMangledMesaCommand.cxx b/Source/cmUseMangledMesaCommand.cxx index ea012f6..01ef5cb 100644 --- a/Source/cmUseMangledMesaCommand.cxx +++ b/Source/cmUseMangledMesaCommand.cxx @@ -82,12 +82,12 @@ void cmUseMangledMesaCommand::CopyAndFullPathMesaHeader(const char* source, // regular expression for gl GL or xmesa in a file (match(1) of above) cmsys::RegularExpression glLine("(gl|GL|xmesa)"); while (cmSystemTools::GetLineFromStream(fin, inLine)) { - if (includeLine.find(inLine.c_str())) { + if (includeLine.find(inLine)) { std::string includeFile = includeLine.match(1); - if (glDirLine.find(includeFile.c_str())) { + if (glDirLine.find(includeFile)) { std::string gfile = glDirLine.match(3); fout << "#include \"" << outdir << "/" << gfile << "\"\n"; - } else if (glLine.find(includeFile.c_str())) { + } else if (glLine.find(includeFile)) { fout << "#include \"" << outdir << "/" << includeLine.match(1) << "\"\n"; } else { |