summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorZdibák Zoltán <zdibakzoltan@gmail.com>2018-10-30 20:19:58 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-10-31 02:19:08 +0100
commitfac3f9c401ba7f6524b6a64ba3e27c6c94976f4e (patch)
tree9f8538aee9c5f853be3f0aa573fe56ed10cafd98 /sc/source
parent684dfd88716b65b354f0de2ff5661ca0736e4a29 (diff)
cppCheck RedundantAssignment variable pPattern
Change-Id: Iba6eb684366bd60c19e4f28ec76c4d85bd1c4b64 Reviewed-on: https://gerrit.libreoffice.org/62666 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/viewfun4.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx
index 4babeeeedc3d..3f686f2edbf4 100644
--- a/sc/source/ui/view/viewfun4.cxx
+++ b/sc/source/ui/view/viewfun4.cxx
@@ -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() );