From 2ac1c2f75e5f020fbb8c2c98b00ef32faa4770aa Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 26 Feb 2016 15:25:53 +0200 Subject: loplugin:unuseddefaultparam in sw (part1) Change-Id: I08b57f3b30e2f1892da54965a0f53de00363b8bd --- sw/source/uibase/dochdl/swdtflvr.cxx | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) (limited to 'sw/source/uibase/dochdl') diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index 6dbd5eadcb61..3976cbf425b9 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -1554,38 +1554,21 @@ bool SwTransferable::PasteData( TransferableDataHelper& rData, return bRet; } -SotExchangeDest SwTransferable::GetSotDestination( const SwWrtShell& rSh, - const Point* pPt ) +SotExchangeDest SwTransferable::GetSotDestination( const SwWrtShell& rSh ) { SotExchangeDest nRet = SotExchangeDest::NONE; - ObjCntType eOType; - if( pPt ) - { - SdrObject *pObj = nullptr; - eOType = rSh.GetObjCntType( *pPt, pObj ); - } - else - eOType = rSh.GetObjCntTypeOfSelection(); + ObjCntType eOType = rSh.GetObjCntTypeOfSelection(); switch( eOType ) { case OBJCNT_GRF: { bool bIMap, bLink; - if( pPt ) - { - bIMap = nullptr != rSh.GetFormatFromObj( *pPt )->GetURL().GetMap(); - OUString aDummy; - rSh.GetGrfAtPos( *pPt, aDummy, bLink ); - } - else - { - bIMap = nullptr != rSh.GetFlyFrameFormat()->GetURL().GetMap(); - OUString aDummy; - rSh.GetGrfNms( &aDummy, nullptr ); - bLink = !aDummy.isEmpty(); - } + bIMap = nullptr != rSh.GetFlyFrameFormat()->GetURL().GetMap(); + OUString aDummy; + rSh.GetGrfNms( &aDummy, nullptr ); + bLink = !aDummy.isEmpty(); if( bLink && bIMap ) nRet = SotExchangeDest::DOC_LNKD_GRAPH_W_IMAP; -- cgit