summaryrefslogtreecommitdiff
path: root/desktop/source
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 /desktop/source
parent2ee60f02c456f39a80edb2dbfed48c3e0147a7f7 (diff)
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 'desktop/source')
-rw-r--r--desktop/source/lib/init.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 11fa55b9c23d..2fb3e7efdaad 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1174,7 +1174,8 @@ rtl::Reference<LOKClipboard> forceSetClipboardForCurrentView(LibreOfficeKitDocum
LibLODocument_Impl::LibLODocument_Impl(const uno::Reference <css::lang::XComponent> &xComponent)
: mxComponent(xComponent)
{
- if (!(m_pDocumentClass = gDocumentClass.lock()))
+ m_pDocumentClass = gDocumentClass.lock();
+ if (!m_pDocumentClass)
{
m_pDocumentClass = std::make_shared<LibreOfficeKitDocumentClass>();