Kaydet (Commit) 61f1f6b4 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

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.
üst 4fe56f3b
...@@ -205,7 +205,7 @@ void testUseGradient(uno::Reference<beans::XPropertySet> xPropSet, bool bUseGrad ...@@ -205,7 +205,7 @@ void testUseGradient(uno::Reference<beans::XPropertySet> xPropSet, bool bUseGrad
void testPositiveColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColor) void testPositiveColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColor)
{ {
sal_Int32 nColor; sal_Int32 nColor = 0;
uno::Any aAny = xPropSet->getPropertyValue("Color"); uno::Any aAny = xPropSet->getPropertyValue("Color");
CPPUNIT_ASSERT(aAny >>= nColor); CPPUNIT_ASSERT(aAny >>= nColor);
CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), sal_uInt32(nColor)); CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), sal_uInt32(nColor));
...@@ -213,7 +213,7 @@ void testPositiveColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColo ...@@ -213,7 +213,7 @@ void testPositiveColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColo
void testNegativeColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColor) void testNegativeColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColor)
{ {
sal_Int32 nColor; sal_Int32 nColor = 0;
uno::Any aAny = xPropSet->getPropertyValue("NegativeColor"); uno::Any aAny = xPropSet->getPropertyValue("NegativeColor");
CPPUNIT_ASSERT(aAny >>= nColor); CPPUNIT_ASSERT(aAny >>= nColor);
CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), sal_uInt32(nColor)); CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), sal_uInt32(nColor));
...@@ -221,7 +221,7 @@ void testNegativeColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColo ...@@ -221,7 +221,7 @@ void testNegativeColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColo
void testAxisColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColor) void testAxisColor(uno::Reference<beans::XPropertySet> xPropSet, Color aColor)
{ {
sal_Int32 nColor; sal_Int32 nColor = 0;
uno::Any aAny = xPropSet->getPropertyValue("AxisColor"); uno::Any aAny = xPropSet->getPropertyValue("AxisColor");
CPPUNIT_ASSERT(aAny >>= nColor); CPPUNIT_ASSERT(aAny >>= nColor);
CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), sal_uInt32(nColor)); CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), sal_uInt32(nColor));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment