minor cleanup

This commit is contained in:
Ken Martin 2002-06-28 08:57:25 -04:00
parent ca2fdeb640
commit c24d201c39
2 changed files with 2 additions and 3 deletions

View File

@ -1340,7 +1340,7 @@ cmSourceFile* cmMakefile::GetSource(const char* sourceName) const
for(std::vector<cmSourceFile*>::const_iterator i = m_SourceFiles.begin();
i != m_SourceFiles.end(); ++i)
{
if ((*i)->GetSourceNameReference() == s)
if ((*i)->GetSourceName() == s)
{
if ((ext.size() == 0 || (ext == (*i)->GetSourceExtension())))
{

View File

@ -91,8 +91,7 @@ public:
* The file name associated with stripped off directory and extension.
* (In most cases this is the name of the class.)
*/
std::string GetSourceName() const {return m_SourceName;}
const std::string &GetSourceNameReference() const {return m_SourceName;}
const std::string &GetSourceName() const {return m_SourceName;}
void SetSourceName(const char *name) {m_SourceName = name;}
/**