mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
cmSourceFile: Avoid unnecessary vector copy
This commit is contained in:
parent
6285fe009d
commit
687aef913c
@ -136,10 +136,10 @@ bool cmSourceFile::FindFullPath(std::string* error)
|
||||
} else {
|
||||
tryDirs[0] = "";
|
||||
}
|
||||
const std::vector<std::string>& srcExts =
|
||||
mf->GetCMakeInstance()->GetSourceExtensions();
|
||||
std::vector<std::string> hdrExts =
|
||||
mf->GetCMakeInstance()->GetHeaderExtensions();
|
||||
|
||||
cmake const* const cmakeInst = mf->GetCMakeInstance();
|
||||
std::vector<std::string> const& srcExts = cmakeInst->GetSourceExtensions();
|
||||
std::vector<std::string> const& hdrExts = cmakeInst->GetHeaderExtensions();
|
||||
for (const char* const* di = tryDirs; *di; ++di) {
|
||||
std::string tryPath = this->Location.GetDirectory();
|
||||
if (!tryPath.empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user