performance inprovements
This commit is contained in:
parent
6eb671097d
commit
ca2fdeb640
@ -1209,6 +1209,12 @@ cmMakefile::FindSourceGroup(const char* source,
|
|||||||
bool cmMakefile::IsFunctionBlocked(const char *name,
|
bool cmMakefile::IsFunctionBlocked(const char *name,
|
||||||
std::vector<std::string> const&args)
|
std::vector<std::string> const&args)
|
||||||
{
|
{
|
||||||
|
// if there are no blockers get out of here
|
||||||
|
if (m_FunctionBlockers.begin() == m_FunctionBlockers.end())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// loop over all function blockers to see if any block this command
|
// loop over all function blockers to see if any block this command
|
||||||
std::set<cmFunctionBlocker *>::const_iterator pos;
|
std::set<cmFunctionBlocker *>::const_iterator pos;
|
||||||
std::vector<std::string> expandedArguments = args;
|
std::vector<std::string> expandedArguments = args;
|
||||||
@ -1334,12 +1340,14 @@ cmSourceFile* cmMakefile::GetSource(const char* sourceName) const
|
|||||||
for(std::vector<cmSourceFile*>::const_iterator i = m_SourceFiles.begin();
|
for(std::vector<cmSourceFile*>::const_iterator i = m_SourceFiles.begin();
|
||||||
i != m_SourceFiles.end(); ++i)
|
i != m_SourceFiles.end(); ++i)
|
||||||
{
|
{
|
||||||
if((*i)->GetSourceName() == s
|
if ((*i)->GetSourceNameReference() == s)
|
||||||
&& (ext.size() == 0 || (ext == (*i)->GetSourceExtension())))
|
{
|
||||||
|
if ((ext.size() == 0 || (ext == (*i)->GetSourceExtension())))
|
||||||
{
|
{
|
||||||
return *i;
|
return *i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,6 +92,7 @@ public:
|
|||||||
* (In most cases this is the name of the class.)
|
* (In most cases this is the name of the class.)
|
||||||
*/
|
*/
|
||||||
std::string GetSourceName() const {return m_SourceName;}
|
std::string GetSourceName() const {return m_SourceName;}
|
||||||
|
const std::string &GetSourceNameReference() const {return m_SourceName;}
|
||||||
void SetSourceName(const char *name) {m_SourceName = name;}
|
void SetSourceName(const char *name) {m_SourceName = name;}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user