[Libreoffice-commits] .: sw/qa

Lubos Lunak llunak at kemper.freedesktop.org
Tue Jun 19 03:12:48 PDT 2012


 sw/qa/extras/ooxmltok/ooxmltok.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1eb52e99b1bb20616d91142e71f6e535bb8eb13f
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Tue Jun 19 12:12:23 2012 +0200

    treat for tinderbox with obsolete gcc and -Werror *sigh*

diff --git a/sw/qa/extras/ooxmltok/ooxmltok.cxx b/sw/qa/extras/ooxmltok/ooxmltok.cxx
index 2282b47..792b1db 100644
--- a/sw/qa/extras/ooxmltok/ooxmltok.cxx
+++ b/sw/qa/extras/ooxmltok/ooxmltok.cxx
@@ -522,7 +522,7 @@ xray ThisComponent.StyleFamilies.PageStyles.Default.Width
     uno::Reference<uno::XInterface> defaultStyle;
     pageStyles->getByName("Default") >>= defaultStyle;
     uno::Reference<beans::XPropertySet> styleProperties( defaultStyle, uno::UNO_QUERY );
-    sal_Int32 width;
+    sal_Int32 width = 0;
     styleProperties->getPropertyValue( "Width" ) >>= width;
     CPPUNIT_ASSERT( pos.X > width / 2 );
 }


More information about the Libreoffice-commits mailing list