diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2017-12-09 03:30:16 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2017-12-09 03:30:16 (GMT) |
commit | c62ffdcd4f6f638a7d57221528ffbe112887c1b4 (patch) | |
tree | 53ff5991e05654bc9105a8a439e2058f8193d683 /Source/cmVisualStudioGeneratorOptions.cxx | |
parent | d25bcab161bfccb43cbeb43dfe96c805e2c27530 (diff) | |
download | CMake-c62ffdcd4f6f638a7d57221528ffbe112887c1b4.zip CMake-c62ffdcd4f6f638a7d57221528ffbe112887c1b4.tar.gz CMake-c62ffdcd4f6f638a7d57221528ffbe112887c1b4.tar.bz2 |
cmIDEOptions: use std::string instead of const char*
Revise method signatures to save a few c_str() conversions.
Diffstat (limited to 'Source/cmVisualStudioGeneratorOptions.cxx')
-rw-r--r-- | Source/cmVisualStudioGeneratorOptions.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx index b1686be..4f3d737 100644 --- a/Source/cmVisualStudioGeneratorOptions.cxx +++ b/Source/cmVisualStudioGeneratorOptions.cxx @@ -258,7 +258,7 @@ void cmVisualStudioGeneratorOptions::FixCudaCodeGeneration() void cmVisualStudioGeneratorOptions::FixManifestUACFlags() { - static const char* ENABLE_UAC = "EnableUAC"; + static std::string const ENABLE_UAC = "EnableUAC"; if (!HasFlag(ENABLE_UAC)) { return; } @@ -304,8 +304,7 @@ void cmVisualStudioGeneratorOptions::FixManifestUACFlags() continue; } - AddFlag(uacMap[keyValue[0]].c_str(), - uacExecuteLevelMap[keyValue[1]].c_str()); + AddFlag(uacMap[keyValue[0]], uacExecuteLevelMap[keyValue[1]]); continue; } @@ -314,7 +313,7 @@ void cmVisualStudioGeneratorOptions::FixManifestUACFlags() // unknown uiAccess value continue; } - AddFlag(uacMap[keyValue[0]].c_str(), keyValue[1].c_str()); + AddFlag(uacMap[keyValue[0]], keyValue[1]); continue; } |