summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdpntv.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-04 16:10:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-05 08:50:46 +0200
commitac11e45bad895e9f7de0b38fe22b7f2acf8c8e4b (patch)
treed16f934544638622cc9f511ef64cc2dd2425b600 /svx/source/svdraw/svdpntv.cxx
parentec38966951f28a1e1d4c97f01a550c87f152cbc8 (diff)
loplugin:checkunusedparams in svx(part4)
Change-Id: I032b49f4e1228ef275d7ff8d87ba969dcef687ab Reviewed-on: https://gerrit.libreoffice.org/37248 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdpntv.cxx')
-rw-r--r--svx/source/svdraw/svdpntv.cxx17
1 files changed, 7 insertions, 10 deletions
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index 85f5c4648ebf..b24b96f7222b 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -978,7 +978,7 @@ bool SdrPaintView::IsGroupEntered() const
return false;
}
-void SdrPaintView::SetNotPersistDefaultAttr(const SfxItemSet& rAttr, bool /*bReplaceAll*/)
+void SdrPaintView::SetNotPersistDefaultAttr(const SfxItemSet& rAttr)
{
// bReplaceAll has no effect here at all.
bool bMeasure= dynamic_cast<const SdrView*>(this) != nullptr && static_cast<SdrView*>(this)->IsMeasureTool();
@@ -997,7 +997,7 @@ void SdrPaintView::SetNotPersistDefaultAttr(const SfxItemSet& rAttr, bool /*bRep
}
}
-void SdrPaintView::MergeNotPersistDefaultAttr(SfxItemSet& rAttr, bool /*bOnlyHardAttr*/) const
+void SdrPaintView::MergeNotPersistDefaultAttr(SfxItemSet& rAttr) const
{
// bOnlyHardAttr has no effect here at all.
bool bMeasure= dynamic_cast<const SdrView*>(this) != nullptr && static_cast<const SdrView*>(this)->IsMeasureTool();
@@ -1033,7 +1033,7 @@ void SdrPaintView::SetDefaultAttr(const SfxItemSet& rAttr, bool bReplaceAll)
#endif
if (bReplaceAll) maDefaultAttr.Set(rAttr);
else maDefaultAttr.Put(rAttr,false); // if FALSE, regard InvalidItems as "holes," not as Default
- SetNotPersistDefaultAttr(rAttr,bReplaceAll);
+ SetNotPersistDefaultAttr(rAttr);
#ifdef DBG_UTIL
if (mpItemBrowser!=nullptr) mpItemBrowser->SetDirty();
#endif
@@ -1074,7 +1074,7 @@ bool SdrPaintView::GetAttributes(SfxItemSet& rTargetSet, bool bOnlyHardAttr) con
rTargetSet.Put(mpDefaultStyleSheet->GetItemSet(), false);
rTargetSet.Put(maDefaultAttr, false);
}
- MergeNotPersistDefaultAttr(rTargetSet, bOnlyHardAttr);
+ MergeNotPersistDefaultAttr(rTargetSet);
return true;
}
@@ -1217,20 +1217,17 @@ void SdrPaintView::VisAreaChanged(const OutputDevice* pOut)
if(pWindow)
{
- VisAreaChanged(*pWindow);
+ VisAreaChanged();
}
}
else
{
- for(sal_uInt32 a(0L); a < mpPageView->PageWindowCount(); a++)
- {
- VisAreaChanged(*mpPageView->GetPageWindow(a));
- }
+ VisAreaChanged();
}
}
}
-void SdrPaintView::VisAreaChanged(const SdrPageWindow& /*rWindow*/)
+void SdrPaintView::VisAreaChanged()
{
// notify SfxListener
Broadcast(SvxViewChangedHint());