summaryrefslogtreecommitdiff
path: root/sw/source/ui/dochdl
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-08-29 09:31:04 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-09-06 22:40:29 +0200
commit7d146bdf4ccb9d0e2190a1ae85643a18ffb9601d (patch)
tree2c4ac42831308a3a3ab2e5504019d7fa6e1d8fbd /sw/source/ui/dochdl
parentefce802d3a52e2fc9843ca0da3472656c6025a0b (diff)
[cppchecker] deleting unread variable
Diffstat (limited to 'sw/source/ui/dochdl')
-rwxr-xr-xsw/source/ui/dochdl/swdtflvr.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/dochdl/swdtflvr.cxx b/sw/source/ui/dochdl/swdtflvr.cxx
index 8da8d8cf9e4d..cfc82055e0d6 100755
--- a/sw/source/ui/dochdl/swdtflvr.cxx
+++ b/sw/source/ui/dochdl/swdtflvr.cxx
@@ -3432,8 +3432,7 @@ SwTrnsfrDdeLink::SwTrnsfrDdeLink( SwTransferable& rTrans, SwWrtShell& rSh )
bDelBookmrk( sal_False ), bInDisconnect( sal_False )
{
// we only end up here with table- or text selection
- const int nSelection = rSh.GetSelectionType();
- if( nsSelectionType::SEL_TBL_CELLS & nSelection )
+ if( nsSelectionType::SEL_TBL_CELLS & rSh.GetSelectionType() )
{
SwFrmFmt* pFmt = rSh.GetTableFmt();
if( pFmt )