diff options
author | Justin Luth <justin_luth@sil.org> | 2019-01-25 17:46:53 +0300 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2019-01-25 20:07:58 +0100 |
commit | efa497515d56468ea82a873e262aa2d84a38e49c (patch) | |
tree | 86802c3b4ea0d1fd29e0e65261a4ae32934be8c0 | |
parent | 9b90389acc2abbee87b598bd9e709d2a4f9715db (diff) |
NFC filter\ww8 misc code cleanups
comment spelling, unnecessary if statement, and clarifying
that a variable that I want to use later is never changed.
Change-Id: If42ee9cc036188d06ceb858a23724383e3933e18
Reviewed-on: https://gerrit.libreoffice.org/66920
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
-rw-r--r-- | sw/source/filter/ww8/wrtw8nds.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index fffd85ea4c3a..2565e216e27b 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -195,10 +195,7 @@ SwWW8AttrIter::SwWW8AttrIter(MSWordExportBase& rWr, const SwTextNode& rTextNd) : { SwPosition aPos(rTextNd); - if (SvxFrameDirection::Horizontal_RL_TB == rWr.m_pDoc->GetTextDirection(aPos)) - mbParaIsRTL = true; - else - mbParaIsRTL = false; + mbParaIsRTL = SvxFrameDirection::Horizontal_RL_TB == rWr.m_pDoc->GetTextDirection(aPos); maCharRunIter = maCharRuns.begin(); IterToCurrent(); @@ -1548,7 +1545,7 @@ SvxFrameDirection MSWordExportBase::GetDefaultFrameDirection( ) const { nDir = TrueFrameDirection( *static_cast< const SwFrameFormat * >(m_pOutFormatNode) ); } - else if ( dynamic_cast< const SwContentNode *>( m_pOutFormatNode ) != nullptr ) //pagagraph + else if ( dynamic_cast< const SwContentNode *>( m_pOutFormatNode ) != nullptr ) //paragraph { const SwContentNode *pNd = static_cast<const SwContentNode *>(m_pOutFormatNode); SwPosition aPos( *pNd ); @@ -2665,7 +2662,7 @@ void MSWordExportBase::OutputTextNode( SwTextNode& rNode ) } } - bool bParaRTL = aAttrIter.IsParaRTL(); + const bool bParaRTL = aAttrIter.IsParaRTL(); int nNumberLevel = -1; if (rNode.IsNumbered()) |