diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-11-19 13:29:28 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-11-19 13:29:28 (GMT) |
commit | 910409750216a302ecb559f50255feaaee18df95 (patch) | |
tree | f6f1cceb270bfd14ecfa22f72d01ae03ae961abf /Source/cmLocalVisualStudio7Generator.cxx | |
parent | c3d9a7ca5a43e6414aa8d51647a08ca40b0f4dc7 (diff) | |
download | CMake-910409750216a302ecb559f50255feaaee18df95.zip CMake-910409750216a302ecb559f50255feaaee18df95.tar.gz CMake-910409750216a302ecb559f50255feaaee18df95.tar.bz2 |
COMP: fix compile error
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index d038040..3af2ba4 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -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 |