[Libreoffice-commits] core.git: sd/qa

Stephan Bergmann sbergman at redhat.com
Tue Jun 16 23:58:52 PDT 2015


 sd/qa/unit/export-tests.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 55e7aa6022a7d05f79bd9fe6df8a865e3901aecf
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jun 17 08:58:20 2015 +0200

    loplugin:cstylecast
    
    Change-Id: Ia8e0b5ded9f73cf448910593184a0e8936180a12

diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx
index 3f52898..f82b523 100644
--- a/sd/qa/unit/export-tests.cxx
+++ b/sd/qa/unit/export-tests.cxx
@@ -202,7 +202,7 @@ void checkFontAttributes( const SdrTextObj* pObj, ItemValue nVal)
         const ItemType* pAttrib = dynamic_cast<const ItemType *>((*it).pAttr);
         if (pAttrib)
         {
-            CPPUNIT_ASSERT_EQUAL( nVal, (ItemValue)pAttrib->GetValue());
+            CPPUNIT_ASSERT_EQUAL( nVal, static_cast<ItemValue>(pAttrib->GetValue()));
         }
     }
 }


More information about the Libreoffice-commits mailing list