/[svn]/qsampler/trunk/src/qsamplerOptions.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerOptions.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3555 by capela, Mon Jul 1 10:53:41 2019 UTC revision 3556 by capela, Thu Aug 15 09:09:21 2019 UTC
# Line 286  bool Options::parse_args ( const QString Line 286  bool Options::parse_args ( const QString
286  {  {
287          QTextStream out(stderr);          QTextStream out(stderr);
288          const QString sEol = "\n\n";          const QString sEol = "\n\n";
         int iCmdArgs = 0;  
289          const int argc = args.count();          const int argc = args.count();
290            int iCmdArgs = 0;
291    
292          for (int i = 1; i < argc; i++) {          for (int i = 1; i < argc; ++i) {
293    
294                  if (iCmdArgs > 0) {                  if (iCmdArgs > 0) {
295                          sSessionFile += " ";                          sSessionFile += " ";
296                          sSessionFile += args.at(i);                          sSessionFile += args.at(i);
297                          iCmdArgs++;                          ++iCmdArgs;
298                          continue;                          continue;
299                  }                  }
300    
# Line 321  bool Options::parse_args ( const QString Line 321  bool Options::parse_args ( const QString
321                          }                          }
322                          sServerHost = sVal;                          sServerHost = sVal;
323                          if (iEqual < 0)                          if (iEqual < 0)
324                                  i++;                                  ++i;
325                  }                  }
326                  else if (sArg == "-p" || sArg == "--port") {                  else if (sArg == "-p" || sArg == "--port") {
327                          if (sVal.isNull()) {                          if (sVal.isNull()) {
# Line 330  bool Options::parse_args ( const QString Line 330  bool Options::parse_args ( const QString
330                          }                          }
331                          iServerPort = sVal.toInt();                          iServerPort = sVal.toInt();
332                          if (iEqual < 0)                          if (iEqual < 0)
333                                  i++;                                  ++i;
334                  }                  }
335                  else if (sArg == "-?" || sArg == "--help") {                  else if (sArg == "-?" || sArg == "--help") {
336                          print_usage(args.at(0));                          print_usage(args.at(0));
# Line 356  bool Options::parse_args ( const QString Line 356  bool Options::parse_args ( const QString
356                          // If we don't have one by now,                          // If we don't have one by now,
357                          // this will be the startup sesion file...                          // this will be the startup sesion file...
358                          sSessionFile += sArg;                          sSessionFile += sArg;
359                          iCmdArgs++;                          ++iCmdArgs;
360                  }                  }
361          }          }
362    

Legend:
Removed from v.3555  
changed lines
  Added in v.3556

  ViewVC Help
Powered by ViewVC