diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-11 15:56:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-12 10:31:25 +0100 |
commit | f147b160aef1735d34c488353a7d4b875788a7e1 (patch) | |
tree | ab3bd613cf016cde906b3fdcbaab4246ca699e1e /svx | |
parent | 718f540fb63af27c1336f89213444e9af753b8a9 (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: Ifa384933569b27d0d08eb479bb95b799163ae386
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88450
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/accessibility/AccessibleFrameSelector.cxx | 3 | ||||
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdview.cxx | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/svx/source/accessibility/AccessibleFrameSelector.cxx b/svx/source/accessibility/AccessibleFrameSelector.cxx index 238699a8188d..05b129e156ea 100644 --- a/svx/source/accessibility/AccessibleFrameSelector.cxx +++ b/svx/source/accessibility/AccessibleFrameSelector.cxx @@ -276,8 +276,7 @@ Reference< XAccessibleRelationSet > AccFrameSelectorChild::getAccessibleRelation { SolarMutexGuard aGuard; IsValid(); - utl::AccessibleRelationSetHelper* pHelper; - Reference< XAccessibleRelationSet > xRet = pHelper = new utl::AccessibleRelationSetHelper; + Reference< XAccessibleRelationSet > xRet = new utl::AccessibleRelationSetHelper; return xRet; } diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index f6725738ed07..84792e8058c6 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -2342,7 +2342,7 @@ void SvxRuler::PrepareProportional_Impl(RulerType eType) if(bHorz) lWidth = GetMargin2() - lWidth; mxRulerImpl->nTotalDist = lWidth; - lPos = lOrigLPos = mpBorders[nIdx].nPos; + lPos = mpBorders[nIdx].nPos; for(sal_uInt16 i = nStartBorder; i < nEndBorder; ++i) { diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index 6182d99c3db2..c85b3555b674 100644 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -327,7 +327,6 @@ SdrHitKind SdrView::PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) co if (bTextEditHit || bTextEditSel) { eHit=SdrHitKind::TextEdit; - bTextEditHit=true; } else if (pHdl!=nullptr) { |