emplace_back: use perfect forwarding if possible
commitaecdb5425538130ff4b82d56fa910bffcd9c3b81
authorThorsten Behrens <thorsten.behrens@allotropia.de>
Thu, 4 Mar 2021 22:29:50 +0000 (4 23:29 +0100)
committerThorsten Behrens <thorsten.behrens@allotropia.de>
Fri, 5 Mar 2021 10:51:32 +0000 (5 11:51 +0100)
treee9a51f36470b7df4f4c3ea1b5aa57f36e398c84c
parentd6886c340d1c940a4b3ab7e7ca499fff63183845
emplace_back: use perfect forwarding if possible

When using that new-ish method, try giving the compiler a chance to
construct in-place. Left out harder cases using initializer lists,
and might have missed slightly less obvious places.

Change-Id: Ifcc3a6d4599474457e37dd17a35c41fc73e7a17e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111980
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
dbaccess/source/ui/control/opendoccontrols.cxx
sd/source/ui/app/sdmod2.cxx
sfx2/source/view/classificationhelper.cxx
sw/source/core/attr/calbck.cxx
sw/source/filter/ww8/rtfstringbuffer.cxx
sw/source/uibase/app/swmodule.cxx
sw/source/uibase/uiview/uivwimp.cxx
vcl/source/app/stdtext.cxx
vcl/source/window/scrwnd.cxx
writerfilter/source/rtftok/rtfdispatchvalue.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx