summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-03-04 18:50:43 (GMT)
committerBrad King <brad.king@kitware.com>2021-03-05 14:34:58 (GMT)
commit1b774e18fbf98b1e5b3b046e621e36f2e7d145f5 (patch)
tree6587cbee6e3aa02f42e4080c80add0fff630d54d /Source/cmGlobalVisualStudio10Generator.cxx
parenta1c0758ea0c26eb1f5003cca431f3326e1e2495b (diff)
downloadCMake-1b774e18fbf98b1e5b3b046e621e36f2e7d145f5.zip
CMake-1b774e18fbf98b1e5b3b046e621e36f2e7d145f5.tar.gz
CMake-1b774e18fbf98b1e5b3b046e621e36f2e7d145f5.tar.bz2
cmGlobalVisualStudio10Generator: Remove redundant arguments
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.cxx42
1 files changed, 18 insertions, 24 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx
index a8207b5..a155d7d 100644
--- a/Source/cmGlobalVisualStudio10Generator.cxx
+++ b/Source/cmGlobalVisualStudio10Generator.cxx
@@ -1400,8 +1400,7 @@ cmIDEFlagTable const* cmGlobalVisualStudio10Generator::LoadFlagTable(
cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetClFlagTable() const
{
- std::string optionsName =
- this->GetClFlagTableName(this->GetPlatformToolsetString());
+ std::string optionsName = this->GetClFlagTableName();
std::string toolsetName =
this->CanonicalToolsetName(this->GetPlatformToolsetString());
std::string defaultName =
@@ -1412,8 +1411,7 @@ cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetClFlagTable() const
cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetCSharpFlagTable()
const
{
- std::string optionsName =
- this->GetCSharpFlagTableName(this->GetPlatformToolsetString());
+ std::string optionsName = this->GetCSharpFlagTableName();
std::string toolsetName =
this->CanonicalToolsetName(this->GetPlatformToolsetString());
std::string defaultName =
@@ -1423,8 +1421,7 @@ cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetCSharpFlagTable()
cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetRcFlagTable() const
{
- std::string optionsName =
- this->GetRcFlagTableName(this->GetPlatformToolsetString());
+ std::string optionsName = this->GetRcFlagTableName();
std::string toolsetName =
this->CanonicalToolsetName(this->GetPlatformToolsetString());
std::string defaultName =
@@ -1434,8 +1431,7 @@ cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetRcFlagTable() const
cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetLibFlagTable() const
{
- std::string optionsName =
- this->GetLibFlagTableName(this->GetPlatformToolsetString());
+ std::string optionsName = this->GetLibFlagTableName();
std::string toolsetName =
this->CanonicalToolsetName(this->GetPlatformToolsetString());
std::string defaultName =
@@ -1445,8 +1441,7 @@ cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetLibFlagTable() const
cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetLinkFlagTable() const
{
- std::string optionsName =
- this->GetLinkFlagTableName(this->GetPlatformToolsetString());
+ std::string optionsName = this->GetLinkFlagTableName();
std::string toolsetName =
this->CanonicalToolsetName(this->GetPlatformToolsetString());
std::string defaultName =
@@ -1475,8 +1470,7 @@ cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetCudaHostFlagTable()
cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetMasmFlagTable() const
{
- std::string optionsName =
- this->GetMasmFlagTableName(this->GetPlatformToolsetString());
+ std::string optionsName = this->GetMasmFlagTableName();
std::string toolsetName =
this->CanonicalToolsetName(this->GetPlatformToolsetString());
std::string defaultName =
@@ -1493,9 +1487,9 @@ cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetNasmFlagTable() const
return LoadFlagTable("", toolsetName, defaultName, "NASM");
}
-std::string cmGlobalVisualStudio10Generator::GetClFlagTableName(
- std::string const& toolset) const
+std::string cmGlobalVisualStudio10Generator::GetClFlagTableName() const
{
+ std::string const& toolset = this->GetPlatformToolsetString();
std::string const useToolset = this->CanonicalToolsetName(toolset);
if (toolset == "v142") {
@@ -1515,9 +1509,9 @@ std::string cmGlobalVisualStudio10Generator::GetClFlagTableName(
}
}
-std::string cmGlobalVisualStudio10Generator::GetCSharpFlagTableName(
- std::string const& toolset) const
+std::string cmGlobalVisualStudio10Generator::GetCSharpFlagTableName() const
{
+ std::string const& toolset = this->GetPlatformToolsetString();
std::string const useToolset = this->CanonicalToolsetName(toolset);
if (useToolset == "v142") {
@@ -1537,9 +1531,9 @@ std::string cmGlobalVisualStudio10Generator::GetCSharpFlagTableName(
}
}
-std::string cmGlobalVisualStudio10Generator::GetRcFlagTableName(
- std::string const& toolset) const
+std::string cmGlobalVisualStudio10Generator::GetRcFlagTableName() const
{
+ std::string const& toolset = this->GetPlatformToolsetString();
std::string const useToolset = this->CanonicalToolsetName(toolset);
if ((useToolset == "v140") || (useToolset == "v141") ||
@@ -1556,9 +1550,9 @@ std::string cmGlobalVisualStudio10Generator::GetRcFlagTableName(
}
}
-std::string cmGlobalVisualStudio10Generator::GetLibFlagTableName(
- std::string const& toolset) const
+std::string cmGlobalVisualStudio10Generator::GetLibFlagTableName() const
{
+ std::string const& toolset = this->GetPlatformToolsetString();
std::string const useToolset = this->CanonicalToolsetName(toolset);
if ((useToolset == "v140") || (useToolset == "v141") ||
@@ -1575,9 +1569,9 @@ std::string cmGlobalVisualStudio10Generator::GetLibFlagTableName(
}
}
-std::string cmGlobalVisualStudio10Generator::GetLinkFlagTableName(
- std::string const& toolset) const
+std::string cmGlobalVisualStudio10Generator::GetLinkFlagTableName() const
{
+ std::string const& toolset = this->GetPlatformToolsetString();
std::string const useToolset = this->CanonicalToolsetName(toolset);
if (useToolset == "v142") {
@@ -1597,9 +1591,9 @@ std::string cmGlobalVisualStudio10Generator::GetLinkFlagTableName(
}
}
-std::string cmGlobalVisualStudio10Generator::GetMasmFlagTableName(
- std::string const& toolset) const
+std::string cmGlobalVisualStudio10Generator::GetMasmFlagTableName() const
{
+ std::string const& toolset = this->GetPlatformToolsetString();
std::string const useToolset = this->CanonicalToolsetName(toolset);
if ((useToolset == "v140") || (useToolset == "v141") ||