diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-09-23 15:53:55 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-09-23 15:53:55 (GMT) |
commit | 4b9386751a0cb897b18b4a26333e278efec928d1 (patch) | |
tree | f31df19934448911a7e56bb3fd5dab7356017670 /Source/kwsys | |
parent | 4966d102d64409dab7a726feebcb34e136f42892 (diff) | |
download | CMake-4b9386751a0cb897b18b4a26333e278efec928d1.zip CMake-4b9386751a0cb897b18b4a26333e278efec928d1.tar.gz CMake-4b9386751a0cb897b18b4a26333e278efec928d1.tar.bz2 |
STYLE: Only allocate as much space as needed
Diffstat (limited to 'Source/kwsys')
-rw-r--r-- | Source/kwsys/CommandLineArguments.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx index 9f73dc1..744f115 100644 --- a/Source/kwsys/CommandLineArguments.cxx +++ b/Source/kwsys/CommandLineArguments.cxx @@ -322,7 +322,7 @@ int CommandLineArguments::Parse() void CommandLineArguments::GetRemainingArguments(int* argc, char*** argv) { CommandLineArguments::Internal::VectorOfStrings::size_type size - = this->Internals->Argv.size() - this->Internals->LastArgument + 1; + = this->Internals->Argv.size() - this->Internals->LastArgument; CommandLineArguments::Internal::VectorOfStrings::size_type cc; // Copy Argv0 as the first argument |