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>
This commit is contained in:
Justin Luth
2019-01-25 17:46:53 +03:00
parent 9b90389acc
commit efa497515d

View File

@@ -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())