Browse Source

cmGlobalVisualStudio10Generator: Move static functions to anonymous namespace

Brad King 4 years ago
parent
commit
e66a7fe07b
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Source/cmGlobalVisualStudio10Generator.cxx

+ 4 - 2
Source/cmGlobalVisualStudio10Generator.cxx

@@ -1359,8 +1359,9 @@ static unsigned int cmLoadFlagTableSpecial(Json::Value entry,
   return value;
 }
 
-static cmIDEFlagTable const* cmLoadFlagTableJson(
-  std::string const& flagJsonPath)
+namespace {
+
+cmIDEFlagTable const* cmLoadFlagTableJson(std::string const& flagJsonPath)
 {
   cmIDEFlagTable* ret = nullptr;
   auto savedFlagIterator = loadedFlagJsonFiles.find(flagJsonPath);
@@ -1394,6 +1395,7 @@ static cmIDEFlagTable const* cmLoadFlagTableJson(
   }
   return ret;
 }
+}
 
 cm::optional<std::string> cmGlobalVisualStudio10Generator::FindFlagTable(
   cm::string_view toolsetName, cm::string_view table) const