summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-06-28 12:57:25 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-06-28 12:57:25 (GMT)
commitc24d201c3912d04c8b55dd168fff2ae7f9adb390 (patch)
tree4377889081554d8836c593a9ddd94fe16378728b
parentca2fdeb640e88f11c3e36a8bf52b77e7081238c0 (diff)
downloadCMake-c24d201c3912d04c8b55dd168fff2ae7f9adb390.zip
CMake-c24d201c3912d04c8b55dd168fff2ae7f9adb390.tar.gz
CMake-c24d201c3912d04c8b55dd168fff2ae7f9adb390.tar.bz2
minor cleanup
-rw-r--r--Source/cmMakefile.cxx2
-rw-r--r--Source/cmSourceFile.h3
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;}
/**