diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-07 18:47:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-08 09:30:23 +0200 |
commit | c83a8071666af2f8e96a4b1808d7650ba112f931 (patch) | |
tree | 377448701e379846d7f25d641a875eac283339a5 /sw | |
parent | c2f318c6e57bf7b5d3b3c1cb19846e5261080daa (diff) |
loplugin:unusedfields
Change-Id: I9ae44279f1cce06bd6868005fbb878ba4894aed7
Reviewed-on: https://gerrit.libreoffice.org/58706
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/romenu.cxx | 7 | ||||
-rw-r--r-- | sw/source/uibase/docvw/romenu.hxx | 1 |
2 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/uibase/docvw/romenu.cxx b/sw/source/uibase/docvw/romenu.cxx index 0cb03faa3364..a3062c4c9766 100644 --- a/sw/source/uibase/docvw/romenu.cxx +++ b/sw/source/uibase/docvw/romenu.cxx @@ -106,16 +106,15 @@ SwReadOnlyPopup::SwReadOnlyPopup(const Point &rDPos, SwView &rV) , m_nReadonlyCopy(m_xMenu->GetItemId("copy")) , m_rView(rV) , m_aBrushItem(RES_BACKGROUND) - , m_rDocPos(rDPos) { m_bGrfToGalleryAsLnk = SW_MOD()->GetModuleConfig()->IsGrfToGalleryAsLnk(); SwWrtShell &rSh = m_rView.GetWrtShell(); OUString sDescription; - rSh.IsURLGrfAtPos( m_rDocPos, &m_sURL, &m_sTargetFrameName, &sDescription ); + rSh.IsURLGrfAtPos( rDPos, &m_sURL, &m_sTargetFrameName, &sDescription ); if ( m_sURL.isEmpty() ) { SwContentAtPos aContentAtPos( IsAttrAtPos::InetAttr ); - if( rSh.GetContentAtPos( m_rDocPos, aContentAtPos)) + if( rSh.GetContentAtPos( rDPos, aContentAtPos)) { const SwFormatINetFormat &rIItem = *static_cast<const SwFormatINetFormat*>(aContentAtPos.aFnd.pAttr); m_sURL = rIItem.GetValue(); @@ -125,7 +124,7 @@ SwReadOnlyPopup::SwReadOnlyPopup(const Point &rDPos, SwView &rV) bool bLink = false; const Graphic *pGrf; - if ( nullptr == (pGrf = rSh.GetGrfAtPos( m_rDocPos, m_sGrfName, bLink )) ) + if ( nullptr == (pGrf = rSh.GetGrfAtPos( rDPos, m_sGrfName, bLink )) ) { m_xMenu->EnableItem(m_nReadonlySaveGraphic, false); } diff --git a/sw/source/uibase/docvw/romenu.hxx b/sw/source/uibase/docvw/romenu.hxx index 78d592165450..5803adbab8e0 100644 --- a/sw/source/uibase/docvw/romenu.hxx +++ b/sw/source/uibase/docvw/romenu.hxx @@ -59,7 +59,6 @@ class SwReadOnlyPopup SwView &m_rView; SvxBrushItem m_aBrushItem; - const Point &m_rDocPos; Graphic m_aGraphic; OUString m_sURL, m_sTargetFrameName; |