COMP: fix compile error

This commit is contained in:
Bill Hoffman 2005-11-19 08:29:28 -05:00
parent c3d9a7ca5a
commit 9104097502
1 changed files with 2 additions and 5 deletions

View File

@ -550,11 +550,8 @@ void cmLocalVisualStudio7Generator::FillFlagMapFromCommandFlags(
{
option.reserve(strlen(flagTable->commandFlag)+2);
// first do the - version
option.clear();
option.insert(static_cast<std::string::size_type>(0),
static_cast<std::string::size_type>(1),
'-');
option.append(flagTable->commandFlag);
option = "-";
option += flagTable->commandFlag;
while(flags.find(option) != flags.npos)
{
// replace the flag