summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioGeneratorOptions.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-08-09 22:59:12 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2018-08-13 22:22:11 (GMT)
commit6ce56028d5b1bae2d6adfe8765a651862c2c6a75 (patch)
tree25ce20735989c76262f0d0bbcc15535d0e737483 /Source/cmVisualStudioGeneratorOptions.cxx
parent505a713a04b3fc927692d61a1b8e3ea563dc56df (diff)
downloadCMake-6ce56028d5b1bae2d6adfe8765a651862c2c6a75.zip
CMake-6ce56028d5b1bae2d6adfe8765a651862c2c6a75.tar.gz
CMake-6ce56028d5b1bae2d6adfe8765a651862c2c6a75.tar.bz2
cmVisualStudioGeneratorOptions::Parse(): const std::string& argument
Diffstat (limited to 'Source/cmVisualStudioGeneratorOptions.cxx')
-rw-r--r--Source/cmVisualStudioGeneratorOptions.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx
index 4afef8b..5d67dcf 100644
--- a/Source/cmVisualStudioGeneratorOptions.cxx
+++ b/Source/cmVisualStudioGeneratorOptions.cxx
@@ -297,12 +297,12 @@ void cmVisualStudioGeneratorOptions::FixManifestUACFlags()
AddFlag(ENABLE_UAC, "true");
}
-void cmVisualStudioGeneratorOptions::Parse(const char* flags)
+void cmVisualStudioGeneratorOptions::Parse(const std::string& flags)
{
// Parse the input string as a windows command line since the string
// is intended for writing directly into the build files.
std::vector<std::string> args;
- cmSystemTools::ParseWindowsCommandLine(flags, args);
+ cmSystemTools::ParseWindowsCommandLine(flags.c_str(), args);
// Process flags that need to be represented specially in the IDE
// project file.
@@ -366,7 +366,7 @@ void cmVisualStudioGeneratorOptions::Reparse(std::string const& key)
std::string const original = i->second[0];
i->second[0] = "";
this->UnknownFlagField = key;
- this->Parse(original.c_str());
+ this->Parse(original);
}
void cmVisualStudioGeneratorOptions::StoreUnknownFlag(std::string const& flag)