소스 검색

ERR: We can't assume a vector iterator is a pointer. It must be dereferenced to get a reference to the element, and then we can take the address of that to get a pointer. "i" becomes "&*i"

Brad King 24 년 전
부모
커밋
57c4325c7d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Source/cmMakeDepend.cxx

+ 1 - 1
Source/cmMakeDepend.cxx

@@ -68,7 +68,7 @@ void cmMakeDepend::SetMakefile(cmMakefile* makefile)
         info->m_FullPath = this->FullPath(i->m_FullPath.c_str());
         this->AddFileToSearchPath(info->m_FullPath.c_str());
         info->m_IncludeName = i->m_FullPath;
-        info->m_ClassFileIndex = i;
+        info->m_ClassFileIndex = &*i;
         m_DependInformation.push_back(info);
         }
       }