diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-14 12:38:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-14 15:47:25 +0200 |
commit | 63b4b3f097c18ed9c1413373b49679f8b37cb9b0 (patch) | |
tree | 05dbc46a9b22d8067eb46896c77f1692d0582047 /sfx2 | |
parent | 0640e342628ef82cc8f25e99cd3eae32e0f20c02 (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 'sfx2')
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/doctempl.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index a5b3d15ff572..537206b3f98c 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1186,7 +1186,7 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet ) aURL.SetSmartURL( aFile); if ( aURL.GetProtocol() == INetProtocol::File ) { - INetURLObject aPath( aURL ); + INetURLObject aPath(std::move(aURL)); aPath.setFinalSlash(); aPath.removeSegment(); // we know it's a folder -> don't need the final slash, but it's better for WB_PATHELLIPSIS diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index 6a6b1baed8a8..e28d550963ea 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -867,7 +867,7 @@ bool SfxDocumentTemplates::CopyFrom if( aTitle.isEmpty() ) { - INetURLObject aURL( aTemplURL ); + INetURLObject aURL(std::move(aTemplURL)); aURL.CutExtension(); aTitle = aURL.getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DecodeMechanism::WithCharset ); |