[Greg Stein]
> > -      int argc = 1;
> > -      app = new QCoreApplication(argc, (char *[1]) {(char *) "svn"});
> > +      int argc = q_argc;
> > +      app = new QCoreApplication(argc, q_argv);
> 
> Why keep argc around? Just use q_argc.

Because argc is passed by reference (int &argc) and I figured the only
reason to do that is if you intend to modify it.

But looking closer, this code is only ever called once, so fair enough.

Anyway, those two instances have a lot more duplicate code so I'll
probably commit a followup soon to de-dupe it, and I'll remove the
extra variable too.

Reply via email to