[LyX/master] use std::move() instead of copying when value is no longer used

Jean-Marc Lasgouttes lasgouttes at lyx.org
Sat Sep 7 11:22:53 UTC 2024


Le 07/09/2024 à 12:52, Juergen Spitzmueller a écrit :
> commit e685d31f5aadadd9c84c80a604818d49f5853dbf
> Author: Juergen Spitzmueller <spitz at lyx.org>
> Date:   Sat Sep 7 12:50:27 2024 +0200
> 
>      use std::move() instead of copying when value is no longer used
>      
>      This is mainly to shut down coverity which nowadays nags on this.
>      I am not sure whether we really gain something in these cases.
> ---

I have been resisting to making these changes because someone may change 
the code and use the variable afterwards. But I may be wrong after all.

JMarc


More information about the lyx-devel mailing list