QProcess::startCommand deprecation

Jean-Marc Lasgouttes lasgouttes at lyx.org
Fri May 21 08:31:17 UTC 2021


Le 21/05/2021 à 08:13, Jürgen Spitzmüller a écrit :
> Am Donnerstag, dem 20.05.2021 um 12:44 +0200 schrieb Jean-Marc
> Lasgouttes:
>> The new code seems safe enough. I just have a question. Why the test
>> for
>> size == 1 below:
>>          if (arguments.size() == 1)
>>                  arguments.clear();
>>          else if (!arguments.empty())
>>                  arguments.removeFirst();
>>
>> I would just do:
>>          if (!arguments.empty())
>>                  arguments.removeFirst();
>>
>> Would it be wrong? Is there some QStringList peculiarity I do not
>> know about?
> 
> So this question is no more open after your latter message, right?

The code is still here, so the question is relevant. It is not a bug 
though, it just seems to me that the code is needlessly complicated.

JMarc


More information about the lyx-devel mailing list