[Libreoffice-commits] core.git: sw/source

Mark Hung marklh9 at gmail.com
Fri Feb 19 06:28:01 UTC 2016


 sw/source/filter/ww8/wrtw8sty.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 1b374b2a3080a7191c282f891a562962c872893b
Author: Mark Hung <marklh9 at gmail.com>
Date:   Fri Feb 19 07:48:52 2016 +0800

    Remove nesting assignments inside the expression.
    
    Change-Id: I88e9dc26f29b429c2d68634e306e0887565bccec
    Reviewed-on: https://gerrit.libreoffice.org/22494
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/sw/source/filter/ww8/wrtw8sty.cxx b/sw/source/filter/ww8/wrtw8sty.cxx
index e094f1e..0bac951 100644
--- a/sw/source/filter/ww8/wrtw8sty.cxx
+++ b/sw/source/filter/ww8/wrtw8sty.cxx
@@ -290,8 +290,8 @@ void MSWordStyles::BuildStylesTable()
     for( size_t n = 1; n < rArr2.size(); n++ )
     {
         SwTextFormatColl* pFormat = rArr2[n];
-        sal_uInt16 nId ;
-        m_pFormatA[ nId = BuildGetSlot( *pFormat ) ] = pFormat;
+        sal_uInt16 nId = BuildGetSlot( *pFormat ) ;
+        m_pFormatA[ nId ] = pFormat;
         if ( pFormat->IsAssignedToListLevelOfOutlineStyle() )
         {
             int nLvl = pFormat->GetAssignedOutlineStyleLevel() ;


More information about the Libreoffice-commits mailing list