summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 11:28:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 11:28:21 +0200
commit56209b9040c63ef422cffe3795d6bd6ef95ec80e (patch)
treefaf20d0588b0a935d78ded8ba86b9e7b018aae3c /svl
parentfea2e004d4236da14f878cb2da0a76ded3ee77c2 (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I5862e1b0492f51b679a47ec8a08e1ca392a0a1fa
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/poolio.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/items/poolio.cxx b/svl/source/items/poolio.cxx
index 6b0fee8785f1..8abb03b57c94 100644
--- a/svl/source/items/poolio.cxx
+++ b/svl/source/items/poolio.cxx
@@ -427,7 +427,7 @@ void SfxItemPool_Impl::readTheItems (
{
// Loaded Item
SfxPoolItem *&rpNewItem =
- (SfxPoolItem*&)(*ppArr)->operator[](nNew);
+ (*ppArr)->operator[](nNew);
// Unused surrogate?
if ( !rpNewItem )
@@ -450,7 +450,7 @@ void SfxItemPool_Impl::readTheItems (
if ( !bFound )
{
if ( nFree != SAL_MAX_UINT32 )
- (SfxPoolItem*&)(*ppArr)->operator[](nFree) = pOldItem;
+ (*ppArr)->operator[](nFree) = pOldItem;
else
(*ppArr)->push_back( pOldItem );
}