[LyX/master] Avoid some more copies in range-based for loops

Jean-Marc Lasgouttes lasgouttes at lyx.org
Wed Apr 29 08:24:01 UTC 2020



Le 29 avril 2020 01:34:09 GMT+02:00, Richard Kimberly Heck <rikiheck at lyx.org> a écrit :

>I've seen warnings like this, too, sometimes. The easy way to avoid
>them
>seems to be just to use e.g.:
>
>    for (auto const & toc : toc_list) {
>
>and let the compiler figure it out.

Yes, I hesitated to do that and decided to keep the code as it was.

JMarc


More information about the lyx-devel mailing list