]> git.lyx.org Git - features.git/commit
Always qualify calls to std::move()
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 21 Oct 2022 12:11:36 +0000 (14:11 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 21 Oct 2022 12:11:36 +0000 (14:11 +0200)
commitfff28c57561a08858fc4cef3a4386f53227e2108
tree984d567695292b9eaa6d4a306be60bca8b5a24e6
parent647c7b1ac383f00030bd2da32dfa39070c87ed96
Always qualify calls to std::move()

This quashes a new warning in clang++ 15, when std::move() (the
one-parameter version) is used as simply move(). There is a strong
recommendation from WG21 to avoid that.

Details here: https://reviews.llvm.org/D119670

It might be that we should not use that many move()s. I am not
competent to decide on that.

I also used this occasion to get rid of a spacial casing for C++11
that does not seem necessary after all.
12 files changed:
src/BufferParams.cpp
src/LaTeXFeatures.cpp
src/MetricsInfo.cpp
src/TexRow.cpp
src/TocBackend.cpp
src/frontends/qt/Action.cpp
src/insets/InsetArgument.cpp
src/insets/InsetFloat.cpp
src/insets/InsetListings.cpp
src/insets/InsetText.cpp
src/support/unicode.cpp
src/texstream.cpp