summaryrefslogtreecommitdiff
path: root/sfx2/source/inet/inettbc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/inet/inettbc.cxx')
-rw-r--r--sfx2/source/inet/inettbc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx
index 47d361e7ca87..e030555e23df 100644
--- a/sfx2/source/inet/inettbc.cxx
+++ b/sfx2/source/inet/inettbc.cxx
@@ -239,7 +239,7 @@ void SfxURLToolBoxControl_Impl::StateChanged
}
}
- const SfxStringItem *pURL = PTR_CAST(SfxStringItem,pState);
+ const SfxStringItem *pURL = dynamic_cast< const SfxStringItem* >(pState);
OUString aRep( pURL->GetValue() );
INetURLObject aURL( aRep );
INetProtocol eProt = aURL.GetProtocol();