summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-11-05 16:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-11-05 16:07:39 (GMT)
commitf6e7d5f3a00eee04834840a9534d19445fd3ab8f (patch)
tree13f730473cd908d4d8f4673ff5ea78987385bf5a /Source/cmGlobalVisualStudio7Generator.cxx
parentc43b0505a5806ce38274899cc09f42d3fd7d72ee (diff)
downloadCMake-f6e7d5f3a00eee04834840a9534d19445fd3ab8f.zip
CMake-f6e7d5f3a00eee04834840a9534d19445fd3ab8f.tar.gz
CMake-f6e7d5f3a00eee04834840a9534d19445fd3ab8f.tar.bz2
Reduce the scope of temporary cmProp variables and other improvements
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 6267205..75cd714 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -380,9 +380,10 @@ void cmGlobalVisualStudio7Generator::WriteTargetsToSolution(
std::string project = target->GetName();
std::string location = *expath;
- cmProp p = target->GetProperty("VS_PROJECT_TYPE");
- this->WriteExternalProject(fout, project, location, cmToCStr(p),
- target->GetUtilities());
+ this->WriteExternalProject(
+ fout, project, location,
+ cmToCStr(target->GetProperty("VS_PROJECT_TYPE")),
+ target->GetUtilities());
written = true;
} else {
cmProp vcprojName = target->GetProperty("GENERATOR_FILE_NAME");