summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-06 19:53:19 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-06 22:31:35 +0200
commit59768e605182dde4aabfd384d38b47b6317022e2 (patch)
treeeae2d95e994facd79dd8ec02a31ef63b44ec55e6 /sfx2
parentfdc9c3d592f8a0d4ad75910f2a23ae77a14c3328 (diff)
cid#555593 COPY_INSTEAD_OF_MOVE
and cid#1555849 COPY_INSTEAD_OF_MOVE cid#1555936 COPY_INSTEAD_OF_MOVE cid#1555951 COPY_INSTEAD_OF_MOVE cid#1555955 COPY_INSTEAD_OF_MOVE cid#1555960 COPY_INSTEAD_OF_MOVE cid#1555964 COPY_INSTEAD_OF_MOVE cid#1555965 COPY_INSTEAD_OF_MOVE cid#1555975 COPY_INSTEAD_OF_MOVE cid#1555979 COPY_INSTEAD_OF_MOVE cid#1555987 COPY_INSTEAD_OF_MOVE cid#1555990 COPY_INSTEAD_OF_MOVE cid#1555991 COPY_INSTEAD_OF_MOVE cid#1556002 COPY_INSTEAD_OF_MOVE cid#1556008 COPY_INSTEAD_OF_MOVE cid#1556011 COPY_INSTEAD_OF_MOVE cid#1556015 COPY_INSTEAD_OF_MOVE cid#1556017 COPY_INSTEAD_OF_MOVE cid#1556023 COPY_INSTEAD_OF_MOVE Change-Id: I8ab99d8e52a1780173a4272c59d408432c29de9f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171572 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 08c2ebfe99f5..1674a41131df 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -506,10 +506,10 @@ ErrCodeMsg const & SfxMedium::GetLastStorageCreationState() const
return pImpl->nLastStorageError;
}
-void SfxMedium::SetError(ErrCodeMsg nError)
+void SfxMedium::SetError(const ErrCodeMsg& rError)
{
- if (pImpl->m_eError == ERRCODE_NONE || (pImpl->m_eError.IsWarning() && nError.IsError()))
- pImpl->m_eError = nError;
+ if (pImpl->m_eError == ERRCODE_NONE || (pImpl->m_eError.IsWarning() && rError.IsError()))
+ pImpl->m_eError = rError;
}
void SfxMedium::SetWarningError(const ErrCodeMsg& nWarningError)