summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objstor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/objstor.cxx')
-rw-r--r--sfx2/source/doc/objstor.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index e3682e305759..9946b0a28044 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -866,7 +866,7 @@ bool SfxObjectShell::DoLoad( SfxMedium *pMed )
}
const SfxBoolItem* pDdeReconnectItem = static_cast<const SfxBoolItem*>(
- SfxRequest::GetItem(pMedium->GetItemSet(), SID_DDE_RECONNECT_ONLOAD, false, TYPE(SfxBoolItem)));
+ SfxRequest::GetItem(pMedium->GetItemSet(), SID_DDE_RECONNECT_ONLOAD, false, checkSfxPoolItem< SfxBoolItem >));
bool bReconnectDde = true; // by default, we try to auto-connect DDE connections.
if (pDdeReconnectItem)
@@ -1429,7 +1429,7 @@ bool SfxObjectShell::SaveTo_Impl
pFilter = rMedium.GetFilter();
const SfxStringItem *pVersionItem = ( !rMedium.IsInCheckIn( ) && pSet )
- ? static_cast<const SfxStringItem*>( SfxRequest::GetItem( pSet, SID_DOCINFO_COMMENTS, false, TYPE(SfxStringItem) ) )
+ ? static_cast<const SfxStringItem*>( SfxRequest::GetItem( pSet, SID_DOCINFO_COMMENTS, false, checkSfxPoolItem< SfxStringItem > ) )
: NULL;
OUString aTmpVersionURL;
@@ -1519,7 +1519,7 @@ bool SfxObjectShell::SaveTo_Impl
{
// store a version also
const SfxStringItem *pAuthorItem = pSet
- ? static_cast<const SfxStringItem*>( SfxRequest::GetItem( pSet, SID_DOCINFO_AUTHOR, false, TYPE(SfxStringItem) ) )
+ ? static_cast<const SfxStringItem*>( SfxRequest::GetItem( pSet, SID_DOCINFO_AUTHOR, false, checkSfxPoolItem< SfxStringItem > ) )
: NULL;
// version comment