From 8f59317223e0b8e1e5e6e4145b6ee457fe9e15f3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 13 Apr 2019 21:27:47 +0200 Subject: loplugin:sequentialassign in starmath..svl Change-Id: I95d7b67cd8b6b68c087ff96fdb6bb283ab8b49ec Reviewed-on: https://gerrit.libreoffice.org/70718 Tested-by: Jenkins Reviewed-by: Noel Grandin --- stoc/source/implementationregistration/implreg.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'stoc/source/implementationregistration/implreg.cxx') diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx index e463097bb5e6..0fb17520df9f 100644 --- a/stoc/source/implementationregistration/implreg.cxx +++ b/stoc/source/implementationregistration/implreg.cxx @@ -396,9 +396,7 @@ void prepareUserLink(const Reference < XSimpleRegistry >& xDest, const OUString& linkTarget, const OUString& implName) { - Reference < XRegistryKey > xRootKey; - - xRootKey = xDest->getRootKey(); + Reference < XRegistryKey > xRootKey = xDest->getRootKey(); if (xRootKey->getKeyType(linkName) == RegistryKeyType_LINK) { -- cgit