diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-07-11 12:52:23 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-13 06:58:01 +0000 |
commit | 26ac3ee8b2f8cb3bd298d98f9a94c9e305f6c304 (patch) | |
tree | e3151f901b656070bba1837d9881d57ac12fbb46 /sw | |
parent | d11b244bf9b9115f5384d6ff43bdffc7f1289d71 (diff) |
editeng, convert to typed Link<>
and remove SvxBrushItem::SetDoneLink since the field it sets
is unused.wq
Change-Id: Ide95a295fa8004f1ddab5e560f01d36d36658a72
Reviewed-on: https://gerrit.libreoffice.org/16943
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/docvw/romenu.cxx | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index b22259a0a640..679a3d3b1a90 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -1836,8 +1836,6 @@ static void lcl_DrawGraphic( const SvxBrushItem& rBrush, vcl::RenderContext *pOu pOut->IntersectClipRegion( rOut.SVRect() ); } - // No Link here, we want to load the graphic synchronously! - const_cast<SvxBrushItem&>(rBrush).SetDoneLink( Link<>() ); GraphicObject *pGrf = const_cast<GraphicObject*>(rBrush.GetGraphicObject()); // Outsource drawing of background with a background color @@ -1985,11 +1983,7 @@ void DrawGraphic( rSh.GetOut()->GetOutDevType() == OUTDEV_PRINTER ) { pBrush->PurgeMedium(); - const_cast<SvxBrushItem*>(pBrush)->SetDoneLink( Link<>() ); } - else - const_cast<SvxBrushItem*>(pBrush)->SetDoneLink( LINK( - rSh.GetDoc(), SwDoc, BackgroundDone ) ); OUString referer; SfxObjectShell * sh = rSh.GetDoc()->GetPersist(); if (sh != 0 && sh->HasName()) { diff --git a/sw/source/uibase/docvw/romenu.cxx b/sw/source/uibase/docvw/romenu.cxx index f53e3eae52f5..6896e9bb5fc6 100644 --- a/sw/source/uibase/docvw/romenu.cxx +++ b/sw/source/uibase/docvw/romenu.cxx @@ -352,7 +352,6 @@ OUString SwReadOnlyPopup::SaveGraphic( sal_uInt16 nId ) { if ( !aBrushItem.GetGraphicLink().isEmpty() ) sGrfName = aBrushItem.GetGraphicLink(); - aBrushItem.SetDoneLink( Link<>() ); const Graphic *pGrf = aBrushItem.GetGraphic(); if ( pGrf ) { |