From f03310eac0162c8b582a0f5f6cb0489d29aaa488 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 13 Apr 2019 21:26:38 +0200 Subject: loplugin:sequentialassign in sfx2..solenv Change-Id: I57e11d45aad48713b7c6802e2b6976fd916fc6ba Reviewed-on: https://gerrit.libreoffice.org/70717 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/styles/StyleManager.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sfx2/source/styles') diff --git a/sfx2/source/styles/StyleManager.cxx b/sfx2/source/styles/StyleManager.cxx index 6a78c09af54c..75ec9d9467a2 100644 --- a/sfx2/source/styles/StyleManager.cxx +++ b/sfx2/source/styles/StyleManager.cxx @@ -20,9 +20,8 @@ SfxStyleSheetBase* StyleManager::Search(const OUString& rStyleName, SfxStyleFami return nullptr; pPool->SetSearchMask(eFamily); - SfxStyleSheetBase* pStyle = nullptr; - pStyle = pPool->First(); + SfxStyleSheetBase* pStyle = pPool->First(); while (pStyle) { if (rStyleName == pStyle->GetName()) -- cgit