make SfxItemSet with SAL_WARN_UNUSED
Change-Id: Ia74ca329d8438f614169031acfbe0406faf7c281 Reviewed-on: https://gerrit.libreoffice.org/33268 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
2da34e265d
commit
afaa10da25
@ -303,8 +303,6 @@ void ShapeController::executeDispatch_FormatArea()
|
||||
pFact->CreateSvxAreaTabDialog( pParent, &aAttr, &pDrawModelWrapper->getSdrModel(), true ) );
|
||||
if ( pDlg.get() )
|
||||
{
|
||||
SfxItemPool& rItemPool = pDrawViewWrapper->GetModel()->GetItemPool();
|
||||
SfxItemSet aSet( rItemPool, rItemPool.GetFirstWhich(), rItemPool.GetLastWhich() );
|
||||
if ( pDlg->Execute() == RET_OK )
|
||||
{
|
||||
const SfxItemSet* pOutAttr = pDlg->GetOutputItemSet();
|
||||
|
@ -7423,7 +7423,6 @@ void ApplyCellAttributes( const SdrObject* pObj, Reference< XCell >& xCell )
|
||||
{//vertical writing
|
||||
xPropSet->setPropertyValue( "TextWritingMode" , Any( css::text::WritingMode_TB_RL ) );
|
||||
}
|
||||
SfxItemSet aSet( pObj->GetMergedItemSet() );
|
||||
drawing::FillStyle eFillStyle(static_cast<const XFillStyleItem&>(pObj->GetMergedItem( XATTR_FILLSTYLE )).GetValue());
|
||||
css::drawing::FillStyle eFS( css::drawing::FillStyle_NONE );
|
||||
switch( eFillStyle )
|
||||
@ -7503,7 +7502,6 @@ void ApplyCellLineAttributes( const SdrObject* pLine, Reference< XTable >& xTabl
|
||||
{
|
||||
try
|
||||
{
|
||||
SfxItemSet aSet( pLine->GetMergedItemSet() );
|
||||
drawing::LineStyle eLineStyle(static_cast<const XLineStyleItem&>(pLine->GetMergedItem( XATTR_LINESTYLE )).GetValue());
|
||||
css::table::BorderLine2 aBorderLine;
|
||||
switch( eLineStyle )
|
||||
|
@ -31,7 +31,7 @@ class SvStream;
|
||||
|
||||
typedef std::map<sal_uInt16, SfxPoolItem const *> SfxItemMap;
|
||||
|
||||
class SVL_DLLPUBLIC SfxItemSet
|
||||
class SAL_WARN_UNUSED SVL_DLLPUBLIC SfxItemSet
|
||||
{
|
||||
friend class SfxItemIter;
|
||||
|
||||
|
@ -301,7 +301,6 @@ SdDrawDocument::SdDrawDocument(DocumentType eType, SfxObjectShell* pDrDocSh)
|
||||
// Set the StyleSheetPool for HitTestOutliner.
|
||||
// The link to the StyleRequest handler of the document is set later, in
|
||||
// NewOrLoadCompleted, because only then do all the templates exist.
|
||||
SfxItemSet aSet2( pHitTestOutliner->GetEmptyItemSet() );
|
||||
pHitTestOutliner->SetStyleSheetPool( static_cast<SfxStyleSheetPool*>(GetStyleSheetPool()) );
|
||||
|
||||
SetCalcFieldValueHdl( pHitTestOutliner );
|
||||
|
@ -299,7 +299,6 @@ void FuTemplate::DoExecute( SfxRequest& rReq )
|
||||
ScopedVclPtr<SfxAbstractTabDialog> pPresDlg;
|
||||
SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
|
||||
bool bOldDocInOtherLanguage = false;
|
||||
SfxItemSet aOriSet( pStyleSheet->GetItemSet() );
|
||||
|
||||
SfxStyleFamily eFamily = pStyleSheet->GetFamily();
|
||||
|
||||
|
@ -234,11 +234,6 @@ void SfxItemPropertySet::setPropertyValue( const SfxItemPropertySimpleEntry& rEn
|
||||
SfxItemState eState = rSet.GetItemState( rEntry.nWID, true, &pItem );
|
||||
if (SfxItemState::SET != eState && SfxItemPool::IsWhich(rEntry.nWID))
|
||||
pItem = &rSet.GetPool()->GetDefaultItem(rEntry.nWID);
|
||||
//maybe there's another way to find an Item
|
||||
if(eState < SfxItemState::DEFAULT)
|
||||
{
|
||||
SfxItemSet aSet(*rSet.GetPool(), rEntry.nWID, rEntry.nWID);
|
||||
}
|
||||
if(!pNewItem && pItem)
|
||||
{
|
||||
pNewItem.reset(pItem->Clone());
|
||||
|
@ -893,8 +893,6 @@ void SwAnnotationShell::ExecClpbrd(SfxRequest &rReq)
|
||||
return;
|
||||
|
||||
OutlinerView* pOLV = pPostItMgr->GetActiveSidebarWin()->GetOutlinerView();
|
||||
SfxItemSet aEditAttr(pOLV->GetAttribs());
|
||||
SfxItemSet aNewAttr(*aEditAttr.GetPool(), aEditAttr.GetRanges());
|
||||
|
||||
long aOldHeight = pPostItMgr->GetActiveSidebarWin()->GetPostItTextHeight();
|
||||
sal_uInt16 nSlot = rReq.GetSlot();
|
||||
@ -1229,7 +1227,6 @@ void SwAnnotationShell::ExecLingu(SfxRequest &rReq)
|
||||
return;
|
||||
|
||||
OutlinerView* pOLV = pPostItMgr->GetActiveSidebarWin()->GetOutlinerView();
|
||||
SfxItemSet aEditAttr(pOLV->GetAttribs());
|
||||
sal_uInt16 nSlot = rReq.GetSlot();
|
||||
SwWrtShell &rSh = rView.GetWrtShell();
|
||||
bool bRestoreSelection = false;
|
||||
@ -1353,7 +1350,6 @@ void SwAnnotationShell::GetLinguState(SfxItemSet &rSet)
|
||||
return;
|
||||
|
||||
OutlinerView* pOLV = pPostItMgr->GetActiveSidebarWin()->GetOutlinerView();
|
||||
SfxItemSet aEditAttr(pOLV->GetAttribs());
|
||||
|
||||
SfxWhichIter aIter(rSet);
|
||||
sal_uInt16 nWhich = aIter.FirstWhich();
|
||||
|
Loading…
x
Reference in New Issue
Block a user