diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:08:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:28 +0100 |
commit | b646aa35d0f5c1115178167f78c6adadb0090aee (patch) | |
tree | 31b9a4d4cce15fd23ec1d7a5fce48a9a0ebb7fe1 /unotools/source/config/fontcfg.cxx | |
parent | c0de7e43b8b51c48c4c0a1f641a1654678bba07a (diff) |
Clean up C-style casts from pointers to void
Change-Id: I8c40cbe7c6928d89eb280344436a4b68a4884bd1
Diffstat (limited to 'unotools/source/config/fontcfg.cxx')
-rw-r--r-- | unotools/source/config/fontcfg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx index e4a966170565..8f496a05116a 100644 --- a/unotools/source/config/fontcfg.cxx +++ b/unotools/source/config/fontcfg.cxx @@ -879,7 +879,7 @@ void FontSubstConfiguration::fillSubstVector( const com::sun::star::uno::Referen Any aAny = rFont->getByName( rType ); if( aAny.getValueTypeClass() == TypeClass_STRING ) { - const OUString* pLine = (const OUString*)aAny.getValue(); + const OUString* pLine = static_cast<const OUString*>(aAny.getValue()); sal_Int32 nLength = pLine->getLength(); if( nLength ) { @@ -928,7 +928,7 @@ FontWeight FontSubstConfiguration::getSubstWeight( const com::sun::star::uno::Re Any aAny = rFont->getByName( rType ); if( aAny.getValueTypeClass() == TypeClass_STRING ) { - const OUString* pLine = (const OUString*)aAny.getValue(); + const OUString* pLine = static_cast<const OUString*>(aAny.getValue()); if( !pLine->isEmpty() ) { for( weight=SAL_N_ELEMENTS(pWeightNames)-1; weight >= 0; weight-- ) @@ -960,7 +960,7 @@ FontWidth FontSubstConfiguration::getSubstWidth( const com::sun::star::uno::Refe Any aAny = rFont->getByName( rType ); if( aAny.getValueTypeClass() == TypeClass_STRING ) { - const OUString* pLine = (const OUString*)aAny.getValue(); + const OUString* pLine = static_cast<const OUString*>(aAny.getValue()); if( !pLine->isEmpty() ) { for( width=SAL_N_ELEMENTS(pWidthNames)-1; width >= 0; width-- ) @@ -992,7 +992,7 @@ unsigned long FontSubstConfiguration::getSubstType( const com::sun::star::uno::R Any aAny = rFont->getByName( rType ); if( aAny.getValueTypeClass() == TypeClass_STRING ) { - const OUString* pLine = (const OUString*)aAny.getValue(); + const OUString* pLine = static_cast<const OUString*>(aAny.getValue()); if( !pLine->isEmpty() ) { sal_Int32 nIndex = 0; |