diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-08-31 23:01:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-09-05 19:12:57 (GMT) |
commit | 6f16be6a6265ee19bd8193da8a7a0d111717ee80 (patch) | |
tree | 3c4cf88923ac34587e5abe2d2f701c7572cc599c /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | 612975c6652c83c29fcfcf56a7b5a0cfe0218c93 (diff) | |
download | CMake-6f16be6a6265ee19bd8193da8a7a0d111717ee80.zip CMake-6f16be6a6265ee19bd8193da8a7a0d111717ee80.tar.gz CMake-6f16be6a6265ee19bd8193da8a7a0d111717ee80.tar.bz2 |
Remove unnecessary c_str() calls
Use the new IsOn(),IsOff() overloads.
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 ea65e21..d239193 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -1798,7 +1798,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"); } } } @@ -1815,8 +1815,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")); } } } |