summaryrefslogtreecommitdiff
path: root/vcl/source/window/winproc.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-14 12:38:27 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-14 15:47:25 +0200
commit63b4b3f097c18ed9c1413373b49679f8b37cb9b0 (patch)
tree05dbc46a9b22d8067eb46896c77f1692d0582047 /vcl/source/window/winproc.cxx
parent0640e342628ef82cc8f25e99cd3eae32e0f20c02 (diff)
cid#1557708 COPY_INSTEAD_OF_MOVE
and cid#1557707 COPY_INSTEAD_OF_MOVE cid#1557706 COPY_INSTEAD_OF_MOVE cid#1557705 COPY_INSTEAD_OF_MOVE cid#1557704 COPY_INSTEAD_OF_MOVE Change-Id: I2346348d9d896e352db3471e8137c0eca8b21507 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171861 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'vcl/source/window/winproc.cxx')
-rw-r--r--vcl/source/window/winproc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index e2e47160e97f..64c101a8c911 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -791,7 +791,7 @@ bool ImplHandleMouseEvent( const VclPtr<vcl::Window>& xWindow, NotifyEventType n
* Yield stack.
*/
ContextMenuEvent* pEv = new ContextMenuEvent;
- pEv->pWindow = pChild;
+ pEv->pWindow = std::move(pChild);
pEv->aChildPos = aChildPos;
Application::PostUserEvent( Link<void*,void>( pEv, ContextMenuEventLink ) );
}