diff options
author | Brad King <brad.king@kitware.com> | 2018-09-06 13:54:07 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-09-06 13:54:18 (GMT) |
commit | 3ecbe1987d56b905853a5fae4f5664befed0e223 (patch) | |
tree | 5c0649ed541e2c61f81b7ca0193c67b5e2f64390 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | 6d2a2fe66027b6eeb2817a8e667894ad2e233d03 (diff) | |
parent | 6f16be6a6265ee19bd8193da8a7a0d111717ee80 (diff) | |
download | CMake-3ecbe1987d56b905853a5fae4f5664befed0e223.zip CMake-3ecbe1987d56b905853a5fae4f5664befed0e223.tar.gz CMake-3ecbe1987d56b905853a5fae4f5664befed0e223.tar.bz2 |
Merge topic 'isonoff-cstr'
6f16be6a62 Remove unnecessary c_str() calls
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2346
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 1dff675..60edfbc 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -1802,7 +1802,7 @@ void cmVisualStudio10TargetGenerator::WriteExtraSource(Elem& e1, "EnableDebuggingInformation", "'$(Configuration)|$(Platform)'=='" + this->Configurations[i] + "|" + this->Platform + "'", - cmSystemTools::IsOn(enableDebug.c_str()) ? "true" : "false"); + cmSystemTools::IsOn(enableDebug) ? "true" : "false"); } } } @@ -1819,8 +1819,7 @@ void cmVisualStudio10TargetGenerator::WriteExtraSource(Elem& e1, "DisableOptimizations", "'$(Configuration)|$(Platform)'=='" + this->Configurations[i] + "|" + this->Platform + "'", - (cmSystemTools::IsOn(disableOptimizations.c_str()) ? "true" - : "false")); + (cmSystemTools::IsOn(disableOptimizations) ? "true" : "false")); } } } |