X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fcliparser.cpp;h=f6dd2c82331c5ec2b1fc3adf4e9eb246882d5a58;hp=2e94e559373af7a688dbcb231593abf2356dd3ea;hb=a65f42197839da536975b3e2858eedcef420035f;hpb=695758015a80eb8c158a9ac4c0f1c0b547e70df3 diff --git a/src/common/cliparser.cpp b/src/common/cliparser.cpp index 2e94e559..f6dd2c82 100644 --- a/src/common/cliparser.cpp +++ b/src/common/cliparser.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -146,7 +146,7 @@ bool CliParser::init(const QStringList &args) else value = currentArg->toLocal8Bit(); name = currentArg->mid(1).toLatin1().at(0); // we took one argument as argument to an option so skip it next time - if (skipNext) currentArg++; + if (skipNext) ++currentArg; if (!addShortArg(CliParserArg::CliArgOption, name, value)) return false; } }