summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-10 13:37:40 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-10 14:38:35 (GMT)
commit40a732800d52b394d7bd4a81e9aaef04ef5914e6 (patch)
treee4f665370ae5fcfb3767eecad49dbcd4b45aecff /Source/cmGlobalVisualStudio7Generator.cxx
parent5ca7e5057bcadbcbe6b933b004ba37ddb5199dba (diff)
downloadCMake-40a732800d52b394d7bd4a81e9aaef04ef5914e6.zip
CMake-40a732800d52b394d7bd4a81e9aaef04ef5914e6.tar.gz
CMake-40a732800d52b394d7bd4a81e9aaef04ef5914e6.tar.bz2
VS: Clarify global generator constructor interface
Make the constructors protected since they should be produced through factories. Also rename `platform{ => InGenerator}Name` to clarify the meaning of the argument.
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 3648086..84f8df1 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -41,7 +41,7 @@ static cmVS7FlagTable cmVS7ExtraFlagTable[] = {
};
cmGlobalVisualStudio7Generator::cmGlobalVisualStudio7Generator(
- cmake* cm, const std::string& platformName)
+ cmake* cm, std::string const& platformInGeneratorName)
: cmGlobalVisualStudioGenerator(cm)
{
this->IntelProjectVersion = 0;
@@ -49,10 +49,10 @@ cmGlobalVisualStudio7Generator::cmGlobalVisualStudio7Generator(
this->MasmEnabled = false;
this->NasmEnabled = false;
- if (platformName.empty()) {
+ if (platformInGeneratorName.empty()) {
this->DefaultPlatformName = "Win32";
} else {
- this->DefaultPlatformName = platformName;
+ this->DefaultPlatformName = platformInGeneratorName;
}
this->ExtraFlagTable = cmVS7ExtraFlagTable;
}