diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:17:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:17:08 +0200 |
commit | 4a69849e2fb50cbe3632209c28b9d638bbf878a9 (patch) | |
tree | 1204e22891cc1b8e566ad5aecf51212fe061442b /sw/source/filter/html/htmlforw.cxx | |
parent | a5d6cd83d7cac1fde630ac1211354242cbe4e085 (diff) |
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I83594c8b6cb1f317b55fe048111edd23f622e1ed
Diffstat (limited to 'sw/source/filter/html/htmlforw.cxx')
-rw-r--r-- | sw/source/filter/html/htmlforw.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sw/source/filter/html/htmlforw.cxx b/sw/source/filter/html/htmlforw.cxx index 0de130123d88..f2df878e90cf 100644 --- a/sw/source/filter/html/htmlforw.cxx +++ b/sw/source/filter/html/htmlforw.cxx @@ -465,7 +465,7 @@ void SwHTMLWriter::OutForm( bool bOn, uno::Any aTmp = xFormPropSet->getPropertyValue( "Name" ); if( aTmp.getValueType() == ::cppu::UnoType<OUString>::get() && - !reinterpret_cast<const OUString*>(aTmp.getValue())->isEmpty() ) + !static_cast<const OUString*>(aTmp.getValue())->isEmpty() ) { sOut += " " + OString(OOO_STRING_SVTOOLS_HTML_O_name) + "=\""; Strm().WriteOString( sOut ); @@ -476,7 +476,7 @@ void SwHTMLWriter::OutForm( bool bOn, aTmp = xFormPropSet->getPropertyValue( "TargetURL" ); if( aTmp.getValueType() == ::cppu::UnoType<OUString>::get() && - !reinterpret_cast<const OUString*>(aTmp.getValue())->isEmpty() ) + !static_cast<const OUString*>(aTmp.getValue())->isEmpty() ) { sOut += " " + OString(OOO_STRING_SVTOOLS_HTML_O_action) + "=\""; Strm().WriteOString( sOut ); @@ -524,7 +524,7 @@ void SwHTMLWriter::OutForm( bool bOn, aTmp = xFormPropSet->getPropertyValue( "TargetFrame" ); if( aTmp.getValueType() == ::cppu::UnoType<OUString>::get()&& - !reinterpret_cast<const OUString*>(aTmp.getValue())->isEmpty() ) + !static_cast<const OUString*>(aTmp.getValue())->isEmpty() ) { sOut += " " + OString(OOO_STRING_SVTOOLS_HTML_O_target) + "=\""; Strm().WriteOString( sOut ); @@ -598,7 +598,7 @@ void SwHTMLWriter::OutHiddenControls( aTmp = xPropSet->getPropertyValue( "Name" ); if( aTmp.getValueType() == ::cppu::UnoType<OUString>::get() && - !reinterpret_cast<const OUString*>(aTmp.getValue())->isEmpty() ) + !static_cast<const OUString*>(aTmp.getValue())->isEmpty() ) { sOut += " " + OString(OOO_STRING_SVTOOLS_HTML_O_name) + "=\""; Strm().WriteOString( sOut ); @@ -608,7 +608,7 @@ void SwHTMLWriter::OutHiddenControls( } aTmp = xPropSet->getPropertyValue( "HiddenValue" ); if( aTmp.getValueType() == ::cppu::UnoType<OUString>::get() && - !reinterpret_cast<const OUString*>(aTmp.getValue())->isEmpty() ) + !static_cast<const OUString*>(aTmp.getValue())->isEmpty() ) { sOut += " " + OString(OOO_STRING_SVTOOLS_HTML_O_value) + "=\""; Strm().WriteOString( sOut ); @@ -778,7 +778,7 @@ Writer& OutHTML_DrawFrmFmtAsControl( Writer& rWrt, aTmp = xPropSet->getPropertyValue( "Label" ); if( aTmp.getValueType() == ::cppu::UnoType<OUString>::get() && - !reinterpret_cast<const OUString*>(aTmp.getValue())->isEmpty() ) + !static_cast<const OUString*>(aTmp.getValue())->isEmpty() ) { sValue = *static_cast<OUString const *>(aTmp.getValue()); } @@ -888,7 +888,7 @@ Writer& OutHTML_DrawFrmFmtAsControl( Writer& rWrt, { aTmp = xPropSet->getPropertyValue( "DefaultText" ); if( aTmp.getValueType() == ::cppu::UnoType<OUString>::get() && - !reinterpret_cast<const OUString*>(aTmp.getValue())->isEmpty() ) + !static_cast<const OUString*>(aTmp.getValue())->isEmpty() ) { sValue = *static_cast<OUString const *>(aTmp.getValue()); } @@ -935,7 +935,7 @@ Writer& OutHTML_DrawFrmFmtAsControl( Writer& rWrt, aTmp = xPropSet->getPropertyValue("Name"); if( aTmp.getValueType() == ::cppu::UnoType<OUString>::get() && - !reinterpret_cast<const OUString*>(aTmp.getValue())->isEmpty() ) + !static_cast<const OUString*>(aTmp.getValue())->isEmpty() ) { sOut += " " + OString(OOO_STRING_SVTOOLS_HTML_O_name) + "=\""; rWrt.Strm().WriteOString( sOut ); @@ -965,7 +965,7 @@ Writer& OutHTML_DrawFrmFmtAsControl( Writer& rWrt, { aTmp = xPropSet->getPropertyValue( "ImageURL" ); if( aTmp.getValueType() == ::cppu::UnoType<OUString>::get() && - !reinterpret_cast<const OUString*>(aTmp.getValue())->isEmpty() ) + !static_cast<const OUString*>(aTmp.getValue())->isEmpty() ) { sOut += " " + OString(OOO_STRING_SVTOOLS_HTML_O_src) + "=\""; rWrt.Strm().WriteOString( sOut ); @@ -1073,7 +1073,7 @@ Writer& OutHTML_DrawFrmFmtAsControl( Writer& rWrt, { aTmp = xPropSet->getPropertyValue( "FontName" ); if( aTmp.getValueType() == ::cppu::UnoType<OUString>::get() && - !reinterpret_cast<const OUString*>(aTmp.getValue())->isEmpty() ) + !static_cast<const OUString*>(aTmp.getValue())->isEmpty() ) { vcl::Font aFixedFont( OutputDevice::GetDefaultFont( DEFAULTFONT_FIXED, LANGUAGE_ENGLISH_US, @@ -1233,7 +1233,7 @@ Writer& OutHTML_DrawFrmFmtAsControl( Writer& rWrt, OUString sVal; aTmp = xPropSet->getPropertyValue( "DefaultText" ); if( aTmp.getValueType() == ::cppu::UnoType<OUString>::get()&& - !reinterpret_cast<const OUString*>(aTmp.getValue())->isEmpty() ) + !static_cast<const OUString*>(aTmp.getValue())->isEmpty() ) { sVal = *static_cast<OUString const *>(aTmp.getValue()); } @@ -1256,7 +1256,7 @@ Writer& OutHTML_DrawFrmFmtAsControl( Writer& rWrt, { aTmp = xPropSet->getPropertyValue("Label"); if( aTmp.getValueType() == ::cppu::UnoType<OUString>::get() && - !reinterpret_cast<const OUString*>(aTmp.getValue())->isEmpty() ) + !static_cast<const OUString*>(aTmp.getValue())->isEmpty() ) { sValue = *static_cast<OUString const *>(aTmp.getValue()); HTMLOutFuncs::Out_String( rWrt.Strm(), sValue, |