]> git.lyx.org Git - lyx.git/commit
Use std::move in InsetText::updateBuffer for notes and friends
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 18 Sep 2018 21:18:17 +0000 (23:18 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 18 Sep 2018 21:18:17 +0000 (23:18 +0200)
commit82516e356bc4b78b466c029bd34a3aeee298ebfa
tree856c1b4cd8662f39fc4b49c9e6f22edffb879cb4
parentf5f2f5b7eaca90ba9bbddee3cea54708c9b98a36
Use std::move in InsetText::updateBuffer for notes and friends

Avoid as much as possible to do full copies of all counters, since
that can be expensive. Unfortunately, it is only posible when we want
to restore the saved counters.

An earlier version (05d3a649) defined swap() for Counter, but caused
problems on windows.

Part of bug #5973.
src/insets/InsetText.cpp