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

Stephan Bergmann sbergman at redhat.com
Sun Jan 14 20:51:41 UTC 2018


 oox/source/export/drawingml.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7f68bd63afb46576216a3396a116f899aa794515
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sat Jan 13 12:56:00 2018 +0100

    Use = for initialization
    
    ...so that an automatic loplugin:cstylecast rewrite (with a to-be-committed
    enhanced loplugin) won't rewrite that to -Werror,-Wvexing-parse
    
      sal_Int16 nTmp( sal_Int16(style::ParagraphAdjust_LEFT) );
    
    Change-Id: I62072864cb879ca3d45bf941d3dfabdd1c2cabd0
    Reviewed-on: https://gerrit.libreoffice.org/47867
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 3b5b4e699a5e..36787c932a0a 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -2145,7 +2145,7 @@ void DrawingML::WriteParagraphProperties( const Reference< XTextContent >& rPara
     sal_Int16 nLevel = -1;
     GET( nLevel, NumberingLevel );
 
-    sal_Int16 nTmp( (sal_Int16)style::ParagraphAdjust_LEFT );
+    sal_Int16 nTmp = (sal_Int16)style::ParagraphAdjust_LEFT;
     GET( nTmp, ParaAdjust );
     style::ParagraphAdjust nAlignment = (style::ParagraphAdjust)nTmp;
 


More information about the Libreoffice-commits mailing list