summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-31 08:35:04 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-31 17:37:14 +0200
commit4177e553e067a6bbbf113c39ba3b81aa8ee194fe (patch)
treed0360b42926d4f4eb58e9c4ebe15bdbc0fdd098a /sfx2
parentef1870810ec8c069e26538fd7626ad0656bed276 (diff)
cid#1555587 COPY_INSTEAD_OF_MOVE
and cid#1555589 COPY_INSTEAD_OF_MOVE cid#1555593 COPY_INSTEAD_OF_MOVE cid#1555596 COPY_INSTEAD_OF_MOVE cid#1555602 COPY_INSTEAD_OF_MOVE cid#1555608 COPY_INSTEAD_OF_MOVE cid#1555610 COPY_INSTEAD_OF_MOVE cid#1555620 COPY_INSTEAD_OF_MOVE cid#1555623 COPY_INSTEAD_OF_MOVE cid#1555625 COPY_INSTEAD_OF_MOVE cid#1555626 COPY_INSTEAD_OF_MOVE cid#1555634 COPY_INSTEAD_OF_MOVE cid#1555638 COPY_INSTEAD_OF_MOVE cid#1555667 COPY_INSTEAD_OF_MOVE cid#1555682 COPY_INSTEAD_OF_MOVE cid#1555686 COPY_INSTEAD_OF_MOVE cid#1555702 COPY_INSTEAD_OF_MOVE cid#1555710 COPY_INSTEAD_OF_MOVE cid#1555750 COPY_INSTEAD_OF_MOVE cid#1555752 COPY_INSTEAD_OF_MOVE cid#1555761 COPY_INSTEAD_OF_MOVE cid#1555762 COPY_INSTEAD_OF_MOVE cid#1555771 COPY_INSTEAD_OF_MOVE cid#1555772 COPY_INSTEAD_OF_MOVE cid#1555784 COPY_INSTEAD_OF_MOVE cid#1555785 COPY_INSTEAD_OF_MOVE Change-Id: Ib9724230c05b2027b4edf64e6a0bb5e22a270a88 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171274 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/helpinterceptor.cxx4
-rw-r--r--sfx2/source/doc/docfile.cxx2
2 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/appl/helpinterceptor.cxx b/sfx2/source/appl/helpinterceptor.cxx
index b8e1e18bff33..bec1d42708d7 100644
--- a/sfx2/source/appl/helpinterceptor.cxx
+++ b/sfx2/source/appl/helpinterceptor.cxx
@@ -65,9 +65,7 @@ void HelpInterceptor_Impl::addURL( const OUString& rURL )
if ( m_xListener.is() )
{
css::frame::FeatureStateEvent aEvent;
- URL aURL;
- aURL.Complete = rURL;
- aEvent.FeatureURL = aURL;
+ aEvent.FeatureURL.Complete = rURL;
aEvent.Source = static_cast<css::frame::XDispatch*>(this);
m_xListener->statusChanged( aEvent );
}
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 3b50588de93d..08c2ebfe99f5 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -4773,7 +4773,7 @@ void SfxMedium::AddToCheckEditableWorkerList()
if (newEntry != nullptr)
{
- g_newReadOnlyDocs[this] = newEntry;
+ g_newReadOnlyDocs[this] = std::move(newEntry);
}
}
}