summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/docfile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/docfile.cxx')
-rw-r--r--sfx2/source/doc/docfile.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index cfa203a85b44..a064bee327ce 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -3390,12 +3390,12 @@ SfxMedium::SfxMedium( const uno::Sequence<beans::PropertyValue>& aArgs ) :
OUString aFilterProvider, aFilterName;
{
- const SfxPoolItem* pItem = nullptr;
- if (pImpl->m_pSet->HasItem(SID_FILTER_PROVIDER, &pItem))
- aFilterProvider = static_cast<const SfxStringItem*>(pItem)->GetValue();
+ const SfxStringItem* pItem = nullptr;
+ if ((pItem = pImpl->m_pSet->GetItemIfSet(SID_FILTER_PROVIDER)))
+ aFilterProvider = pItem->GetValue();
- if (pImpl->m_pSet->HasItem(SID_FILTER_NAME, &pItem))
- aFilterName = static_cast<const SfxStringItem*>(pItem)->GetValue();
+ if ((pItem = pImpl->m_pSet->GetItemIfSet(SID_FILTER_NAME)))
+ aFilterName = pItem->GetValue();
}
if (aFilterProvider.isEmpty())