bug 150: CommandLine::Parse argc parameter should not be a reference

This commit is contained in:
Mathieu Lacage
2008-04-15 11:01:13 -07:00
parent 53be11fe6f
commit 5c5ab1f1f0
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ CommandLine::Item::~Item ()
{}
void
CommandLine::Parse (int &iargc, char *argv[]) const
CommandLine::Parse (int iargc, char *argv[]) const
{
int argc = iargc;
for (argc--, argv++; argc > 0; argc--, argv++)

View File

@@ -64,7 +64,7 @@ public:
* Obviously, this method will parse the input command-line arguments and
* will attempt to handle them all.
*/
void Parse (int &argc, char *argv[]) const;
void Parse (int argc, char *argv[]) const;
private:
class Item
{