]> git.lyx.org Git - lyx.git/commit
Do not pass a vector by value to getArgInset
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 1 Oct 2024 09:45:36 +0000 (11:45 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 1 Oct 2024 11:06:37 +0000 (13:06 +0200)
commitbc624cc7809cef758939aa7fa01550ccb9d0616a
treeddb95984b427dc4d3e09a7843b645d73e989d445
parent54b68469413754a4d1acb11266e9a80f6276d7f8
Do not pass a vector by value to getArgInset

Instead of passing the vector by value so that stuff can be added to
it in the function, add required elements of arguments to a second vector.

While we are at it, simplify the code a bit by using a range-for and
auto keyword.

Spotted by Coverity scan
src/output_latex.cpp