Kaydet (Commit) 6bb80bf6 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:redundantcast: sd

(after a to-be-committed improved loplugin:cstylecast would have rewritten the
C-style casts into static_casts)

Change-Id: I1dc10a2acaf134a3cff142a4ec4afc906b88c260
üst c00cb496
......@@ -293,7 +293,7 @@ const SfxItemSet* FuPage::ExecuteDialog( vcl::Window const * pParent )
if (nId == SID_SAVE_BACKGROUND)
{
const XFillStyleItem& rStyleItem = aMergedAttr.Get(XATTR_FILLSTYLE);
if (drawing::FillStyle_BITMAP == (drawing::FillStyle)rStyleItem.GetValue())
if (drawing::FillStyle_BITMAP == rStyleItem.GetValue())
{
const XFillBitmapItem& rBitmap = aMergedAttr.Get(XATTR_FILLBITMAP);
const GraphicObject& rGraphicObj = rBitmap.GetGraphicObject();
......
......@@ -1696,7 +1696,7 @@ void DrawViewShell::GetPageProperties( SfxItemSet &rSet )
rSet.Put(aPageItem);
const SfxItemSet &rPageAttr = pPage->getSdrPageProperties().GetItemSet();
drawing::FillStyle eXFS = (drawing::FillStyle) rPageAttr.GetItem( XATTR_FILLSTYLE )->GetValue();
drawing::FillStyle eXFS = rPageAttr.GetItem( XATTR_FILLSTYLE )->GetValue();
XFillStyleItem aFillStyleItem( eXFS );
aFillStyleItem.SetWhich( SID_ATTR_PAGE_FILLSTYLE );
rSet.Put(aFillStyleItem);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment