diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/config/cjkoptions.cxx | 2 | ||||
-rw-r--r-- | svl/source/items/itemprop.cxx | 2 | ||||
-rw-r--r-- | svl/source/items/itemset.cxx | 2 | ||||
-rw-r--r-- | svl/source/misc/fstathelper.cxx | 2 | ||||
-rw-r--r-- | svl/source/numbers/numfmuno.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/svl/source/config/cjkoptions.cxx b/svl/source/config/cjkoptions.cxx index 843311d43b72..8510fe0ef745 100644 --- a/svl/source/config/cjkoptions.cxx +++ b/svl/source/config/cjkoptions.cxx @@ -179,7 +179,7 @@ void SvtCJKOptions_Impl::Load() { if( pValues[nProp].hasValue() ) { - bool bValue = *(sal_Bool*)pValues[nProp].getValue(); + bool bValue = *static_cast<sal_Bool const *>(pValues[nProp].getValue()); switch ( nProp ) { case 0: { bCJKFont = bValue; bROCJKFont = pROStates[nProp]; } break; diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx index f17d15eb9b19..9e2c1ed0593d 100644 --- a/svl/source/items/itemprop.cxx +++ b/svl/source/items/itemprop.cxx @@ -200,7 +200,7 @@ void SfxItemPropertySet::getPropertyValue( const SfxItemPropertySimpleEntry& rEn if( rEntry.aType.getTypeClass() == TypeClass_ENUM && rAny.getValueTypeClass() == TypeClass_LONG ) { - sal_Int32 nTmp = *(sal_Int32*)rAny.getValue(); + sal_Int32 nTmp = *static_cast<sal_Int32 const *>(rAny.getValue()); rAny.setValue( &nTmp, rEntry.aType ); } } diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index f0a42745a4bd..d2c3ed103cd2 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -46,7 +46,7 @@ static const sal_uInt16 nInitCount = 10; // Single USHORTs => 5 pairs without '0 const sal_Char *DbgCheckItemSet( const void* pVoid ) { - const SfxItemSet *pSet = (const SfxItemSet*) pVoid; + const SfxItemSet *pSet = static_cast<const SfxItemSet*>(pVoid); SfxWhichIter aIter( *pSet ); sal_uInt16 nCount = 0, n = 0; for ( sal_uInt16 nWh = aIter.FirstWhich(); nWh; nWh = aIter.NextWhich(), ++n ) diff --git a/svl/source/misc/fstathelper.cxx b/svl/source/misc/fstathelper.cxx index 1fdb989f4880..a26732313ad6 100644 --- a/svl/source/misc/fstathelper.cxx +++ b/svl/source/misc/fstathelper.cxx @@ -43,7 +43,7 @@ bool FStatHelper::GetModifiedDateTimeOfFile( const OUString& rURL, if( aAny.hasValue() ) { bRet = true; - const util::DateTime* pDT = (util::DateTime*)aAny.getValue(); + const util::DateTime* pDT = static_cast<util::DateTime const *>(aAny.getValue()); if( pDate ) *pDate = Date( pDT->Day, pDT->Month, pDT->Year ); if( pTime ) diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx index 683505538a5c..678d14d45532 100644 --- a/svl/source/numbers/numfmuno.cxx +++ b/svl/source/numbers/numfmuno.cxx @@ -971,7 +971,7 @@ void SAL_CALL SvNumberFormatSettingsObj::setPropertyValue( const OUString& aProp { // operator >>= shouldn't be used for bool (?) if ( aValue.getValueTypeClass() == uno::TypeClass_BOOLEAN ) - pFormatter->SetNoZero( *(sal_Bool*)aValue.getValue() ); + pFormatter->SetNoZero( *static_cast<sal_Bool const *>(aValue.getValue()) ); } else if (aPropertyName == PROPERTYNAME_NULLDATE) { |