summaryrefslogtreecommitdiff
path: root/sc/source/filter/html
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-06 10:50:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-06 15:10:51 +0100
commit31ee230b6efac9a6a60ceb5c2367ae9a5cf98929 (patch)
treec7ff6f56f5295caa88bda7ceb2036691e3db5c36 /sc/source/filter/html
parent5a242f651c8ae8d53ac67f5059f64629303848ab (diff)
Related: tdf#94814 some cleanup of static_cast following dynamic_cast
to the same type Change-Id: I197e88acbc30f8e8bb9e7f2d54803971df6062af
Diffstat (limited to 'sc/source/filter/html')
-rw-r--r--sc/source/filter/html/htmlexp.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index c8d362275788..f274326bd9c8 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -1268,11 +1268,9 @@ bool ScHTMLExport::WriteFieldText( const EditTextObject* pData )
if ( aSet.GetItemState( EE_FEATURE_FIELD, false, &pItem ) == SfxItemState::SET )
{
const SvxFieldData* pField = static_cast<const SvxFieldItem*>(pItem)->GetField();
- if ( pField && dynamic_cast<const SvxURLField*>( pField) != nullptr )
+ if (const SvxURLField* pURLField = dynamic_cast<const SvxURLField*>(pField))
{
bUrl = true;
- const SvxURLField* pURLField = static_cast<const SvxURLField*>(pField);
-// String aFieldText = rEngine.GetText( aSel );
rStrm.WriteChar( '<' ).WriteCharPtr( OOO_STRING_SVTOOLS_HTML_anchor ).WriteChar( ' ' ).WriteCharPtr( OOO_STRING_SVTOOLS_HTML_O_href ).WriteCharPtr( "=\"" );
OUT_STR( pURLField->GetURL() );
rStrm.WriteCharPtr( "\">" );