diff options
author | jailletc36 <christophe.jaillet@wanadoo.fr> | 2012-11-06 22:49:28 +0100 |
---|---|---|
committer | Radek Doulík <rodo@novell.com> | 2012-11-07 15:57:20 +0000 |
commit | c8eb6910cd41901daf2f4192c0b3e583a20adc90 (patch) | |
tree | e7bbadcbb678c74e9c4465068dd14de61f15dd3d /sw/source/ui/fldui | |
parent | f3acd7232371fd67a80062a045a1a09e3c8d5ab9 (diff) |
cppCheck: Various clean-up
mailconfigpapge: shouldn't it be a logical AND instead of a bit-wise operation ?
HeaderFooterWin, drwtxtsh, formatclipboard, wview: redundant assignment
fldref: unused variable
Change-Id: I5016c12527a8811676ff10f07f7be9e855c66814
Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr>
Reviewed-on: https://gerrit.libreoffice.org/996
Reviewed-by: Radek Doulík <rodo@novell.com>
Tested-by: Radek Doulík <rodo@novell.com>
Diffstat (limited to 'sw/source/ui/fldui')
-rw-r--r-- | sw/source/ui/fldui/fldref.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx index 837c7d42316b..e00fb78d3546 100644 --- a/sw/source/ui/fldui/fldref.cxx +++ b/sw/source/ui/fldui/fldref.cxx @@ -116,11 +116,7 @@ void SwFldRefPage::SaveSelectedTxtNode() if ( pEntry ) { const sal_uInt16 nTypeId = (sal_uInt16)(sal_uLong)aTypeLB.GetEntryData(GetTypeSel()); - SwWrtShell *pSh = GetWrtShell(); - if ( !pSh ) - { - pSh = ::GetActiveWrtShell(); - } + if ( nTypeId == REFFLDFLAG_HEADING ) { mnSavedSelectedPos = static_cast<sal_uInt16>(reinterpret_cast<sal_uLong>(pEntry->GetUserData())); |