automoc: minor optimization
Handing th std::string instead the char* to the find() reduces the time from 17 to 15 seconds (for a 1000 times loop of a relatively small file), which is around 10 percent. Alex
This commit is contained in:
parent
f98e6151dc
commit
1423177828
|
@ -527,7 +527,7 @@ void cmQtAutomoc::ParseCppFile(const std::string& absFilename,
|
||||||
std::string ownMocHeaderFile;
|
std::string ownMocHeaderFile;
|
||||||
|
|
||||||
std::string::size_type matchOffset = 0;
|
std::string::size_type matchOffset = 0;
|
||||||
if (mocIncludeRegExp.find(contentsString.c_str()))
|
if (mocIncludeRegExp.find(contentsString))
|
||||||
{
|
{
|
||||||
// for every moc include in the file
|
// for every moc include in the file
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in New Issue