Browse Source

minor cleanup

pull/1/head
Ken Martin 23 years ago
parent
commit
c24d201c39
  1. 2
      Source/cmMakefile.cxx
  2. 3
      Source/cmSourceFile.h

2
Source/cmMakefile.cxx

@ -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())))
{

3
Source/cmSourceFile.h

@ -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;}
/**

Loading…
Cancel
Save