summaryrefslogtreecommitdiff
path: root/svl/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:07:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:26 +0100
commit09757afd363d9d015c42db43dbe93be393d667ee (patch)
tree633ffd720d9f13f5e5650c48fc87ca8b478a1c1b /svl/source
parent898832faad4be91729deaf88e35f725da62c72ca (diff)
Clean up C-style casts from pointers to void
Change-Id: I4ce94a1cbe0567a829de977aaa9fd1cdbff71788
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/config/cjkoptions.cxx2
-rw-r--r--svl/source/items/itemprop.cxx2
-rw-r--r--svl/source/items/itemset.cxx2
-rw-r--r--svl/source/misc/fstathelper.cxx2
-rw-r--r--svl/source/numbers/numfmuno.cxx2
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)
{