bug 150: CommandLine::Parse argc parameter should not be a reference
This commit is contained in:
@@ -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++)
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user