diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-21 23:16:06 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-21 23:21:19 -0400 |
commit | a1d6f1dfd5855a82970119a1812caade20e22f7e (patch) | |
tree | 3d05e372033345f58a4100860971cfa7b1794e25 /chart2 | |
parent | 998ab5c405963accf47afc69a6bf04e045f6f71f (diff) |
scoped_ptr will do just fine here.
Change-Id: I35701126963047f3e405a6560a90930de99ed3fa
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController_Properties.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chart2/source/controller/main/ChartController_Properties.cxx b/chart2/source/controller/main/ChartController_Properties.cxx index 86e51c032eeb..8daacd38be74 100644 --- a/chart2/source/controller/main/ChartController_Properties.cxx +++ b/chart2/source/controller/main/ChartController_Properties.cxx @@ -711,21 +711,21 @@ bool ChartController::executeDlg_ObjectProperties_withoutUndoGuard( const OUStri boost::scoped_ptr<ReferenceSizeProvider> pRefSizeProv(impl_createReferenceSizeProvider()); - ::std::auto_ptr< ::comphelper::ItemConverter > apItemConverter( + boost::scoped_ptr<comphelper::ItemConverter> pItemConverter( createItemConverter( rObjectCID, getModel(), m_xCC, m_pDrawModelWrapper->getSdrModel(), ExplicitValueProvider::getExplicitValueProvider(m_xChartView), pRefSizeProv.get())); - SAL_WNODEPRECATED_DECLARATIONS_POP - if(!apItemConverter.get()) + + if (!pItemConverter) return bRet; - SfxItemSet aItemSet = apItemConverter->CreateEmptyItemSet(); + SfxItemSet aItemSet = pItemConverter->CreateEmptyItemSet(); if ( eObjectType == OBJECTTYPE_DATA_ERRORS_X || eObjectType == OBJECTTYPE_DATA_ERRORS_Y ) aItemSet.Put(SfxBoolItem(SCHATTR_STAT_ERRORBAR_TYPE, eObjectType == OBJECTTYPE_DATA_ERRORS_Y )); - apItemConverter->FillItemSet( aItemSet ); + pItemConverter->FillItemSet(aItemSet); //prepare dialog ObjectPropertiesDialogParameter aDialogParameter = ObjectPropertiesDialogParameter( rObjectCID ); @@ -769,7 +769,7 @@ bool ChartController::executeDlg_ObjectProperties_withoutUndoGuard( const OUStri if(pOutItemSet) { ControllerLockGuardUNO aCLGuard( getModel()); - apItemConverter->ApplyItemSet( *pOutItemSet );//model should be changed now + pItemConverter->ApplyItemSet(*pOutItemSet); //model should be changed now bRet = true; } } |