Browse Source

cmGlobalVisualStudio10Generator: Clarify LoadFlagTable argument name

Brad King 4 năm trước cách đây
mục cha
commit
414b5e0119

+ 5 - 5
Source/cmGlobalVisualStudio10Generator.cxx

@@ -1366,19 +1366,19 @@ static std::string cmGetFlagTableName(std::string const& toolsetName,
 }
 
 cmIDEFlagTable const* cmGlobalVisualStudio10Generator::LoadFlagTable(
-  std::string const& optionsName, std::string const& defaultName,
+  std::string const& toolSpecificName, std::string const& defaultName,
   std::string const& table) const
 {
   cmIDEFlagTable const* ret = nullptr;
 
   std::string filename;
-  if (!optionsName.empty()) {
-    filename = cmGetFlagTableName(optionsName, table);
+  if (!toolSpecificName.empty()) {
+    filename = cmGetFlagTableName(toolSpecificName, table);
     ret = cmLoadFlagTableJson(filename);
   } else {
-    std::string const& toolsetName =
+    std::string const& genericName =
       this->CanonicalToolsetName(this->GetPlatformToolsetString());
-    filename = cmGetFlagTableName(toolsetName, table);
+    filename = cmGetFlagTableName(genericName, table);
     if (cmSystemTools::FileExists(filename)) {
       ret = cmLoadFlagTableJson(filename);
     } else {

+ 1 - 1
Source/cmGlobalVisualStudio10Generator.h

@@ -169,7 +169,7 @@ protected:
 
   std::string const& GetMSBuildCommand();
 
-  cmIDEFlagTable const* LoadFlagTable(std::string const& optionsName,
+  cmIDEFlagTable const* LoadFlagTable(std::string const& toolSpecificName,
                                       std::string const& defaultName,
                                       std::string const& table) const;