summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/grfshex.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/shells/grfshex.cxx')
-rw-r--r--sw/source/uibase/shells/grfshex.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/grfshex.cxx b/sw/source/uibase/shells/grfshex.cxx
index db0694e9a12a..69a18da6a07b 100644
--- a/sw/source/uibase/shells/grfshex.cxx
+++ b/sw/source/uibase/shells/grfshex.cxx
@@ -70,8 +70,7 @@ bool SwTextShell::InsertMediaDlg( SfxRequest& rReq )
if( pReqArgs )
{
- const SfxStringItem* pStringItem = PTR_CAST( SfxStringItem, &pReqArgs->Get( rReq.GetSlot() ) );
-
+ const SfxStringItem* pStringItem = dynamic_cast<const SfxStringItem*>( &pReqArgs->Get( rReq.GetSlot() ) );
if( pStringItem )
{
aURL = pStringItem->GetValue();