QProcess::startCommand deprecation

Jürgen Spitzmüller spitz at lyx.org
Fri May 21 06:13:20 UTC 2021


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?

Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210521/4fb0717d/attachment.asc>


More information about the lyx-devel mailing list