Source: Modernize for loops, add const modifiers

This commit is contained in:
Vitaly Stakhovsky
2018-12-30 14:31:53 -05:00
parent ae8525b82f
commit 1cf9c754db
4 changed files with 23 additions and 30 deletions
+7 -8
View File
@@ -59,18 +59,17 @@ void cmExtraCodeLiteGenerator::Generate()
// and extract the information for creating the worspace
// root makefile
for (auto const& it : projectMap) {
const cmMakefile* mf = it.second[0]->GetMakefile();
cmLocalGenerator* lg = it.second[0];
const cmMakefile* mf = lg->GetMakefile();
this->ConfigName = GetConfigurationName(mf);
if (it.second[0]->GetCurrentBinaryDirectory() ==
it.second[0]->GetBinaryDirectory()) {
workspaceOutputDir = it.second[0]->GetCurrentBinaryDirectory();
workspaceProjectName = it.second[0]->GetProjectName();
workspaceSourcePath = it.second[0]->GetSourceDirectory();
if (lg->GetCurrentBinaryDirectory() == lg->GetBinaryDirectory()) {
workspaceOutputDir = lg->GetCurrentBinaryDirectory();
workspaceProjectName = lg->GetProjectName();
workspaceSourcePath = lg->GetSourceDirectory();
workspaceFileName = workspaceOutputDir + "/";
workspaceFileName += workspaceProjectName + ".workspace";
this->WorkspacePath = it.second[0]->GetCurrentBinaryDirectory();
;
this->WorkspacePath = lg->GetCurrentBinaryDirectory();
break;
}
}