diff options
-rw-r--r-- | Source/cmMakefile.cxx | 2 | ||||
-rw-r--r-- | Source/cmSourceFile.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 4841584..ca92e41 100644 --- a/Source/cmMakefile.cxx +++ b/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()))) { diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h index 3e41eaa..29c56dc 100644 --- a/Source/cmSourceFile.h +++ b/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;} /** |