sw/source/filter/ww8/wrtw8nds.cxx |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

New commits:
commit efa497515d56468ea82a873e262aa2d84a38e49c
Author:     Justin Luth <justin_l...@sil.org>
AuthorDate: Fri Jan 25 17:46:53 2019 +0300
Commit:     Justin Luth <justin_l...@sil.org>
CommitDate: Fri Jan 25 20:07:58 2019 +0100

    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_l...@sil.org>

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())
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to