From fe1104e515b4798b477debab6b6da8b6785c7fa6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 21 Apr 2015 20:45:09 +0200 Subject: loplugin:cstylecast Change-Id: I9dfde74fa7e5e3a651ea014e6cc335bac780cb4b --- sw/qa/extras/uiwriter/uiwriter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/qa/extras') diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index ffd281bd1c0b..f0a14494b8c5 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -935,7 +935,7 @@ void SwUiWriterTest::testUndoCharAttribute() SfxItemSet aSet( pDoc->GetAttrPool(), RES_CHRATR_WEIGHT, RES_CHRATR_WEIGHT); // Adds selected text's attributes to aSet pCrsr->GetNode().GetTxtNode()->GetAttr(aSet, 10, 19); - SfxPoolItem* aPoolItem = (SfxPoolItem*) aSet.GetItem(RES_CHRATR_WEIGHT); + SfxPoolItem const * aPoolItem = aSet.GetItem(RES_CHRATR_WEIGHT); SfxPoolItem& ampPoolItem = aWeightItem; // Check that bold is active on the selection; checks if it's in aSet CPPUNIT_ASSERT_EQUAL((*aPoolItem == ampPoolItem), true); @@ -944,7 +944,7 @@ void SwUiWriterTest::testUndoCharAttribute() // Check that bold is no longer active aSet.ClearItem(RES_CHRATR_WEIGHT); pCrsr->GetNode().GetTxtNode()->GetAttr(aSet, 10, 19); - aPoolItem = (SfxPoolItem*) aSet.GetItem(RES_CHRATR_WEIGHT); + aPoolItem = aSet.GetItem(RES_CHRATR_WEIGHT); CPPUNIT_ASSERT_EQUAL((*aPoolItem == ampPoolItem), false); } -- cgit