QtAutogen: Remove unnecessary dereference.

This commit is contained in:
Stephen Kelly 2015-09-26 18:11:10 +02:00
parent 64b78c147f
commit 65ff75d3f5

View File

@ -1454,12 +1454,12 @@ void cmGlobalGenerator::CreateQtAutoGeneratorsTargets(AutogensType &autogens)
for(std::vector<std::string>::iterator ti = targetNames.begin(); for(std::vector<std::string>::iterator ti = targetNames.begin();
ti != targetNames.end(); ++ti) ti != targetNames.end(); ++ti)
{ {
cmTarget& target = *this->LocalGenerators[i] cmTarget* target = this->LocalGenerators[i]
->GetMakefile()->FindTarget(*ti, true); ->GetMakefile()->FindTarget(*ti, true);
cmQtAutoGenerators::InitializeAutogenTarget( cmQtAutoGenerators::InitializeAutogenTarget(
this->LocalGenerators[i], &target); this->LocalGenerators[i], target);
cmQtAutoGenerators autogen; cmQtAutoGenerators autogen;
autogens.push_back(std::make_pair(autogen, &target)); autogens.push_back(std::make_pair(autogen, target));
} }
} }
#else #else