summaryrefslogtreecommitdiff
path: root/sd
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 /sd
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 'sd')
-rw-r--r--sd/source/core/drawdoc4.cxx11
-rw-r--r--sd/source/ui/dlg/SpellDialogChildWindow.cxx4
-rw-r--r--sd/source/ui/view/sdview3.cxx2
-rw-r--r--sd/source/ui/view/sdview4.cxx2
4 files changed, 9 insertions, 10 deletions
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index d11df6530604..79c882a5e6d3 100644
--- a/sd/source/core/drawdoc4.cxx
+++ b/sd/source/core/drawdoc4.cxx
@@ -137,7 +137,6 @@ void SdDrawDocument::CreateLayoutTemplates()
pSheet = &(pSSPool->Make(aName, SD_STYLE_FAMILY_GRAPHICS, nMask));
pSheet->SetHelpId( aHelpFile, HID_STANDARD_STYLESHEET_NAME );
SfxItemSet& rISet = pSheet->GetItemSet();
- SfxItemPool* pPool = rISet.GetPool();
::basegfx::B2DPolyPolygon aNullPolyPolygon;
Color aNullCol(RGB_Color(COL_DEFAULT_SHAPE_STROKE));
@@ -152,9 +151,9 @@ void SdDrawDocument::CreateLayoutTemplates()
rISet.Put(XLineStyleItem(drawing::LineStyle_SOLID));
rISet.Put(XLineColorItem(OUString(), RGB_Color(COL_DEFAULT_SHAPE_STROKE)));
rISet.Put(XLineWidthItem(0));
- rISet.Put(XLineDashItem(pPool,aNullDash));
- rISet.Put(XLineStartItem(pPool,aNullPolyPolygon));
- rISet.Put(XLineEndItem(pPool,aNullPolyPolygon));
+ rISet.Put(XLineDashItem(aNullDash));
+ rISet.Put(XLineStartItem(aNullPolyPolygon));
+ rISet.Put(XLineEndItem(aNullPolyPolygon));
rISet.Put(XLineStartWidthItem(200));
rISet.Put(XLineEndWidthItem(200));
rISet.Put(XLineStartCenterItem());
@@ -166,12 +165,12 @@ void SdDrawDocument::CreateLayoutTemplates()
rISet.Put(XFillColorItem(OUString(), RGB_Color(COL_DEFAULT_SHAPE_FILLING)));
rISet.Put( XFillGradientItem( aNullGrad) );
- rISet.Put(XFillHatchItem(pPool,aNullHatch));
+ rISet.Put(XFillHatchItem(aNullHatch));
Size aNullSize( 32, 32 );
Color aNullColor( COL_WHITE );
Bitmap aNullBmp( aNullSize, 8 );
aNullBmp.Erase( aNullColor );
- rISet.Put(XFillBitmapItem(pPool, Graphic(aNullBmp)));
+ rISet.Put(XFillBitmapItem(Graphic(aNullBmp)));
// Shadow attributes (Drawing Engine)
rISet.Put(makeSdrShadowItem(false));
diff --git a/sd/source/ui/dlg/SpellDialogChildWindow.cxx b/sd/source/ui/dlg/SpellDialogChildWindow.cxx
index ca88b379c6f2..0ced6dc52ff4 100644
--- a/sd/source/ui/dlg/SpellDialogChildWindow.cxx
+++ b/sd/source/ui/dlg/SpellDialogChildWindow.cxx
@@ -35,8 +35,8 @@ SpellDialogChildWindow::SpellDialogChildWindow (
vcl::Window* _pParent,
sal_uInt16 nId,
SfxBindings* pBindings,
- SfxChildWinInfo* pInfo)
- : svx::SpellDialogChildWindow (_pParent, nId, pBindings, pInfo),
+ SfxChildWinInfo* /*pInfo*/)
+ : svx::SpellDialogChildWindow (_pParent, nId, pBindings),
mpSdOutliner (nullptr),
mbOwnOutliner (false)
{
diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx
index 9ae250f5ad36..5fa5158618bf 100644
--- a/sd/source/ui/view/sdview3.cxx
+++ b/sd/source/ui/view/sdview3.cxx
@@ -782,7 +782,7 @@ bool View::InsertData( const TransferableDataHelper& rDataHelper,
// If we have a graphic as source object, use its graphic
// content as fill style
aSet.Put(XFillStyleItem(drawing::FillStyle_BITMAP));
- aSet.Put(XFillBitmapItem(&mrDoc.GetPool(), pSdrGrafObj->GetGraphic()));
+ aSet.Put(XFillBitmapItem(pSdrGrafObj->GetGraphic()));
}
pPickObj->SetMergedItemSetAndBroadcast( aSet );
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx
index 972ec47696a9..af1bafb11a81 100644
--- a/sd/source/ui/view/sdview4.cxx
+++ b/sd/source/ui/view/sdview4.cxx
@@ -164,7 +164,7 @@ SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction,
SfxItemSet aSet(mpDocSh->GetPool(), XATTR_FILLSTYLE, XATTR_FILLBITMAP);
aSet.Put(XFillStyleItem(drawing::FillStyle_BITMAP));
- aSet.Put(XFillBitmapItem(&mpDocSh->GetPool(), rGraphic));
+ aSet.Put(XFillBitmapItem(rGraphic));
pPickObj->SetMergedItemSetAndBroadcast(aSet);
}