From c24d201c3912d04c8b55dd168fff2ae7f9adb390 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 28 Jun 2002 08:57:25 -0400 Subject: [PATCH] minor cleanup --- Source/cmMakefile.cxx | 2 +- Source/cmSourceFile.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 48415849b..ca92e4136 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1340,7 +1340,7 @@ cmSourceFile* cmMakefile::GetSource(const char* sourceName) const for(std::vector::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 3e41eaa52..29c56dcef 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;} /**