summaryrefslogtreecommitdiffstats
path: root/include/sfx2/objsh.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-19 11:14:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-19 12:41:48 +0200
commita759623c3f4bc0265b619ef2bcdff72045a1b5b3 (patch)
tree42833d8e6e82009fe5bd5ca3cc0e8d06fb109a61 /include/sfx2/objsh.hxx
parentloplugin:flatten in drawinglayer (diff)
downloadcore-a759623c3f4bc0265b619ef2bcdff72045a1b5b3.tar.gz
core-a759623c3f4bc0265b619ef2bcdff72045a1b5b3.zip
loplugin:buriedassign in various
Change-Id: Ib79cbc89f2f89ff48ea8b59bd12373a10b9dcd62 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92495 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2/objsh.hxx')
-rw-r--r--include/sfx2/objsh.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index 6f3f1098a479..22f5995b0291 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -863,7 +863,8 @@ inline SfxObjectShellLock & SfxObjectShellLock::operator=( SfxObjectShellLock &&
}
inline SfxObjectShellLock & SfxObjectShellLock::operator=( SfxObjectShell * pObjP )
{
- return *this = SfxObjectShellLock( pObjP );
+ *this = SfxObjectShellLock( pObjP );
+ return *this;
}
class SFX2_DLLPUBLIC SfxObjectShellItem final : public SfxPoolItem