Kaydet (Commit) 56209b90 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast: deal with those that are (technically) const_cast

Change-Id: I5862e1b0492f51b679a47ec8a08e1ca392a0a1fa
üst fea2e004
...@@ -427,7 +427,7 @@ void SfxItemPool_Impl::readTheItems ( ...@@ -427,7 +427,7 @@ void SfxItemPool_Impl::readTheItems (
{ {
// Loaded Item // Loaded Item
SfxPoolItem *&rpNewItem = SfxPoolItem *&rpNewItem =
(SfxPoolItem*&)(*ppArr)->operator[](nNew); (*ppArr)->operator[](nNew);
// Unused surrogate? // Unused surrogate?
if ( !rpNewItem ) if ( !rpNewItem )
...@@ -450,7 +450,7 @@ void SfxItemPool_Impl::readTheItems ( ...@@ -450,7 +450,7 @@ void SfxItemPool_Impl::readTheItems (
if ( !bFound ) if ( !bFound )
{ {
if ( nFree != SAL_MAX_UINT32 ) if ( nFree != SAL_MAX_UINT32 )
(SfxPoolItem*&)(*ppArr)->operator[](nFree) = pOldItem; (*ppArr)->operator[](nFree) = pOldItem;
else else
(*ppArr)->push_back( pOldItem ); (*ppArr)->push_back( pOldItem );
} }
......
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