sc/source/core/data/clipcontext.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit c2032c05c88d70e309b8cd6100c1b241ba2d58cd Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Mon Jul 28 20:11:21 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Jul 29 12:02:57 2025 +0200 cid#1555840 Variable copied when it could be moved Change-Id: Ic63d0c16f80e432bfb7a5d9eba225a00cba9b57c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188512 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/sc/source/core/data/clipcontext.cxx b/sc/source/core/data/clipcontext.cxx index 579f7928b57e..d1a439ba9ffa 100644 --- a/sc/source/core/data/clipcontext.cxx +++ b/sc/source/core/data/clipcontext.cxx @@ -151,9 +151,9 @@ public: void CopyFromClipContext::startListeningFormulas() { - const auto pSet = std::make_shared<sc::ColumnBlockPositionSet>(mrDestDoc); - sc::StartListeningContext aStartCxt(mrDestDoc, pSet); - sc::EndListeningContext aEndCxt(mrDestDoc, pSet, nullptr); + auto xSet = std::make_shared<sc::ColumnBlockPositionSet>(mrDestDoc); + sc::StartListeningContext aStartCxt(mrDestDoc, xSet); + sc::EndListeningContext aEndCxt(mrDestDoc, std::move(xSet), nullptr); StartListeningAction aAction(mrDestDoc, aStartCxt, aEndCxt); maListeningFormulaSpans.executeAction(mrDestDoc, aAction);