浏览代码

minor cleanup

Ken Martin 23 年之前
父节点
当前提交
c24d201c39
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 1
      Source/cmMakefile.cxx
  2. 1 2
      Source/cmSourceFile.h

+ 1 - 1
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())))
         {

+ 1 - 2
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;}
 
   /**