summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dochdl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-26 15:25:53 +0200
committerNoel Grandin <noel@peralex.com>2016-02-29 08:04:06 +0200
commit2ac1c2f75e5f020fbb8c2c98b00ef32faa4770aa (patch)
tree460a51ff7aadb0e7fcdcbf56041852b61c1288ff /sw/source/uibase/dochdl
parent83911dd753fbfd0328bae2dfa37d19f514d4b2f9 (diff)
loplugin:unuseddefaultparam in sw (part1)
Change-Id: I08b57f3b30e2f1892da54965a0f53de00363b8bd
Diffstat (limited to 'sw/source/uibase/dochdl')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx29
1 files changed, 6 insertions, 23 deletions
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;