[Libreoffice-commits] core.git: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Oct 31 01:19:36 UTC 2018
sc/source/ui/view/viewfun4.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit fac3f9c401ba7f6524b6a64ba3e27c6c94976f4e
Author: Zdibák Zoltán <zdibakzoltan at gmail.com>
AuthorDate: Tue Oct 30 20:19:58 2018 +0100
Commit: Markus Mohrhard <markus.mohrhard at googlemail.com>
CommitDate: Wed Oct 31 02:19:08 2018 +0100
cppCheck RedundantAssignment variable pPattern
Change-Id: Iba6eb684366bd60c19e4f28ec76c4d85bd1c4b64
Reviewed-on: https://gerrit.libreoffice.org/62666
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
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() );
More information about the Libreoffice-commits
mailing list