Kaydet (Commit) fac3f9c4 authored tarafından Zdibák Zoltán's avatar Zdibák Zoltán Kaydeden (comit) Markus Mohrhard

cppCheck RedundantAssignment variable pPattern

Change-Id: Iba6eb684366bd60c19e4f28ec76c4d85bd1c4b64
Reviewed-on: https://gerrit.libreoffice.org/62666Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 684dfd88
......@@ -367,10 +367,9 @@ void ScViewFunc::DoThesaurus()
pThesaurusEngine->SetRefDevice(GetViewData().GetActiveWin());
pThesaurusEngine->SetSpeller(xSpeller);
MakeEditView(pThesaurusEngine.get(), nCol, nRow );
const ScPatternAttr* pPattern = nullptr;
std::unique_ptr<SfxItemSet> pEditDefaults(
new SfxItemSet(pThesaurusEngine->GetEmptyItemSet()));
pPattern = rDoc.GetPattern(nCol, nRow, nTab);
const ScPatternAttr* pPattern = rDoc.GetPattern(nCol, nRow, nTab);
if (pPattern)
{
pPattern->FillEditItemSet( pEditDefaults.get() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment