Kaydet (Commit) cee21bf9 authored tarafından Noel Grandin's avatar Noel Grandin

fix build

after commit 039b887c
"loplugin: cstylecast"

Change-Id: If567653833a1f164a72bd9a5a6c0fcf651e9d3c0
üst 8ff9b1c2
......@@ -95,10 +95,6 @@ public:
bool bSrchInParent = true,
const SfxPoolItem **ppItem = 0 ) const;
SfxItemState GetItemState( sal_uInt16 nWhich,
bool bSrchInParent = true,
SfxPoolItem **ppItem = 0 );
bool HasItem(sal_uInt16 nWhich, const SfxPoolItem** ppItem = NULL) const;
virtual void DisableItem(sal_uInt16 nWhich);
......
......@@ -934,13 +934,13 @@ bool SfxDocumentPage::FillItemSet( SfxItemSet* rSet )
GetTabDialog() && GetTabDialog()->GetExampleSet() )
{
SfxItemSet* pExpSet = GetTabDialog()->GetExampleSet();
SfxPoolItem* pItem;
const SfxPoolItem* pItem;
if ( pExpSet && SfxItemState::SET == pExpSet->GetItemState( SID_DOCINFO, true, &pItem ) )
{
SfxDocumentInfoItem* m_pInfoItem = static_cast<SfxDocumentInfoItem*>(pItem);
const SfxDocumentInfoItem* m_pInfoItem = static_cast<const SfxDocumentInfoItem*>(pItem);
bool bUseData = ( TRISTATE_TRUE == m_pUseUserDataCB->GetState() );
m_pInfoItem->SetUseUserData( bUseData );
const_cast<SfxDocumentInfoItem*>(m_pInfoItem)->SetUseUserData( bUseData );
rSet->Put( SfxDocumentInfoItem( *m_pInfoItem ) );
bRet = true;
}
......@@ -949,16 +949,16 @@ bool SfxDocumentPage::FillItemSet( SfxItemSet* rSet )
if ( bHandleDelete )
{
SfxItemSet* pExpSet = GetTabDialog()->GetExampleSet();
SfxPoolItem* pItem;
const SfxPoolItem* pItem;
if ( pExpSet && SfxItemState::SET == pExpSet->GetItemState( SID_DOCINFO, true, &pItem ) )
{
SfxDocumentInfoItem* pInfoItem = static_cast<SfxDocumentInfoItem*>(pItem);
const SfxDocumentInfoItem* pInfoItem = static_cast<const SfxDocumentInfoItem*>(pItem);
bool bUseAuthor = bEnableUseUserData && m_pUseUserDataCB->IsChecked();
SfxDocumentInfoItem newItem( *pInfoItem );
newItem.resetUserData( bUseAuthor
? SvtUserOptions().GetFullName()
: OUString() );
pInfoItem->SetUseUserData( TRISTATE_TRUE == m_pUseUserDataCB->GetState() );
const_cast<SfxDocumentInfoItem*>(pInfoItem)->SetUseUserData( TRISTATE_TRUE == m_pUseUserDataCB->GetState() );
newItem.SetUseUserData( TRISTATE_TRUE == m_pUseUserDataCB->GetState() );
newItem.SetDeleteUserData( true );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment