diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-11-29 17:20:07 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-11-29 17:20:07 +0100 |
commit | 2a2ed5878a79999d405e26a5c586883b19e7b09f (patch) | |
tree | 25f378fcb1e670fb56e81aeb7deeeae0d3025cf5 /lotuswordpro/source/filter/lwppara1.cxx | |
parent | Rewrite some (trivial) assignments inside if/while conditions: oox (diff) | |
download | core-2a2ed5878a79999d405e26a5c586883b19e7b09f.tar.gz core-2a2ed5878a79999d405e26a5c586883b19e7b09f.zip |
Rewrite some (trivial) assignments inside if/while conditions: lotuswordpro
Change-Id: Iae2b653381562c5a46de6e05afb96954f523114a
Diffstat (limited to 'lotuswordpro/source/filter/lwppara1.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwppara1.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwppara1.cxx b/lotuswordpro/source/filter/lwppara1.cxx index 0923312d6ea8..8752c9ea2bb4 100644 --- a/lotuswordpro/source/filter/lwppara1.cxx +++ b/lotuswordpro/source/filter/lwppara1.cxx @@ -225,7 +225,8 @@ void LwpPara::GetParaNumber(sal_uInt16 nPosition, ParaNumbering* pParaNumbering) pParaNumbering->nNumLevel = nHideLevels; //get suffix text frib - if ( (pFrib = pFrib->GetNext()) ) + pFrib = pFrib->GetNext(); + if ( pFrib ) { if( pFrib->GetType() == FRIB_TAG_TEXT ) { @@ -259,7 +260,8 @@ void LwpPara::GetParaNumber(sal_uInt16 nPosition, ParaNumbering* pParaNumbering) pParaNumbering->pParaNumber = static_cast<LwpFribParaNumber*>(pFrib); //get suffix text frib - if ( (pFrib = pFrib->GetNext()) ) + pFrib = pFrib->GetNext(); + if ( pFrib ) { if (pFrib->GetType() == FRIB_TAG_TEXT) { |