sc/qa/extras/new_cond_format.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 61f1f6b4d65621d5c02e0c971c6ed51f6711fb63 Author: Norbert Thiebaud <nthieb...@gmail.com> Date: Mon Mar 30 10:41:59 2015 -0500 WaE clang seems confused with >>= overriden operator and do not detect initialization or does not detect that the thing would abort should the init failed. diff --git a/sc/qa/extras/new_cond_format.cxx b/sc/qa/extras/new_cond_format.cxx index c4876e6..edefc1f 100644 --- a/sc/qa/extras/new_cond_format.cxx +++ b/sc/qa/extras/new_cond_format.cxx @@ -205,7 +205,7 @@ void testUseGradient(uno::Reference<beans::XPropertySet> xPropSet, bool bUseGrad void testPositiveColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColor) { - sal_Int32 nColor; + sal_Int32 nColor = 0; uno::Any aAny = xPropSet->getPropertyValue("Color"); CPPUNIT_ASSERT(aAny >>= nColor); CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), sal_uInt32(nColor)); @@ -213,7 +213,7 @@ void testPositiveColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColo void testNegativeColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColor) { - sal_Int32 nColor; + sal_Int32 nColor = 0; uno::Any aAny = xPropSet->getPropertyValue("NegativeColor"); CPPUNIT_ASSERT(aAny >>= nColor); CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), sal_uInt32(nColor)); @@ -221,7 +221,7 @@ void testNegativeColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColo void testAxisColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColor) { - sal_Int32 nColor; + sal_Int32 nColor = 0; uno::Any aAny = xPropSet->getPropertyValue("AxisColor"); CPPUNIT_ASSERT(aAny >>= nColor); CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), sal_uInt32(nColor)); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits