diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-16 12:50:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-16 17:14:31 +0100 |
commit | 71ec25ea725ee887a789fdb9dc2b221b8525bc61 (patch) | |
tree | c8c6f65cb4974b073628b1f66cffd2c17e4376ed /sw/source/filter/ww8/ww8par3.cxx | |
parent | aac8281f705c8d621d54894b14893772e2ee6413 (diff) |
drop templated HasItem in favour of new templated SfxItemSet::GetItem
Change-Id: Ia753e8728a68b90cbf7fe3adda1de8a3297bd782
Diffstat (limited to 'sw/source/filter/ww8/ww8par3.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index a6d0fc54de96..4ddc3119497d 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -1912,10 +1912,7 @@ void SwWW8ImplReader::RegisterNumFormatOnTextNode(sal_uInt16 nActLFO, SetAktItemSet(pOldAktItemSet); } - const SvxLRSpaceItem *pLR = - HasItem<SvxLRSpaceItem>(aListIndent, RES_LR_SPACE); - OSL_ENSURE(pLR, "Impossible"); - if (pLR) + if (const SvxLRSpaceItem *pLR = aListIndent.GetItem<SvxLRSpaceItem>(RES_LR_SPACE)) { m_pCtrlStck->NewAttr(*m_pPaM->GetPoint(), *pLR); m_pCtrlStck->SetAttr(*m_pPaM->GetPoint(), RES_LR_SPACE); |