diff options
Diffstat (limited to 'sc/source/ui/unoobj/cellsuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 527c7811ed2b..02638438b5f5 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -131,6 +131,7 @@ #include <list> #include <memory> +#include <boost/scoped_ptr.hpp> using namespace com::sun::star; @@ -1565,7 +1566,7 @@ void ScCellRangesBase::Notify( SfxBroadcaster&, const SfxHint& rHint ) const ScUpdateRefHint& rRef = static_cast<const ScUpdateRefHint&>(rHint); ScDocument& rDoc = pDocShell->GetDocument(); - std::unique_ptr<ScRangeList> pUndoRanges; + boost::scoped_ptr<ScRangeList> pUndoRanges; if ( rDoc.HasUnoRefUndo() ) pUndoRanges.reset(new ScRangeList( aRanges )); @@ -2447,7 +2448,7 @@ void ScCellRangesBase::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pE formula::FormulaGrammar::GRAM_UNSPECIFIED : formula::FormulaGrammar::mapAPItoGrammar( bEnglish, bXML)); - std::unique_ptr<ScValidationData> pNewData( + boost::scoped_ptr<ScValidationData> pNewData( pValidObj->CreateValidationData( &rDoc, eGrammar )); sal_uLong nIndex = rDoc.AddValidationEntry( *pNewData ); pNewData.reset(); @@ -2714,8 +2715,8 @@ void SAL_CALL ScCellRangesBase::setPropertyValues( const uno::Sequence< OUString } ScDocument& rDoc = pDocShell->GetDocument(); - std::unique_ptr<ScPatternAttr> pOldPattern; - std::unique_ptr<ScPatternAttr> pNewPattern; + boost::scoped_ptr<ScPatternAttr> pOldPattern; + boost::scoped_ptr<ScPatternAttr> pNewPattern; for(i = 0; i < nCount; i++) { @@ -2857,8 +2858,8 @@ uno::Sequence< beans::SetPropertyTolerantFailed > SAL_CALL ScCellRangesBase::set } ScDocument& rDoc = pDocShell->GetDocument(); - std::unique_ptr<ScPatternAttr> pOldPattern; - std::unique_ptr<ScPatternAttr> pNewPattern; + boost::scoped_ptr<ScPatternAttr> pOldPattern; + boost::scoped_ptr<ScPatternAttr> pNewPattern; sal_Int32 nFailed(0); for(i = 0; i < nCount; i++) @@ -3079,7 +3080,7 @@ uno::Sequence< uno::Sequence<double> > SAL_CALL ScCellRangesBase::getData() throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; - std::unique_ptr<ScMemChart> pMemChart(CreateMemChart_Impl()); + boost::scoped_ptr<ScMemChart> pMemChart(CreateMemChart_Impl()); if ( pMemChart ) { sal_Int32 nColCount = pMemChart->GetColCount(); @@ -3193,7 +3194,7 @@ uno::Sequence<OUString> SAL_CALL ScCellRangesBase::getRowDescriptions() throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; - std::unique_ptr<ScMemChart> pMemChart(CreateMemChart_Impl()); + boost::scoped_ptr<ScMemChart> pMemChart(CreateMemChart_Impl()); if ( pMemChart ) { sal_Int32 nRowCount = static_cast<sal_Int32>(pMemChart->GetRowCount()); @@ -3264,7 +3265,7 @@ uno::Sequence<OUString> SAL_CALL ScCellRangesBase::getColumnDescriptions() throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; - std::unique_ptr<ScMemChart> pMemChart(CreateMemChart_Impl()); + boost::scoped_ptr<ScMemChart> pMemChart(CreateMemChart_Impl()); if ( pMemChart ) { sal_Int32 nColCount = pMemChart->GetColCount(); @@ -4087,7 +4088,7 @@ sal_Int32 SAL_CALL ScCellRangesBase::replaceAll( const uno::Reference<util::XSea for (; itr != itrEnd && *itr < nTabCount; ++itr) if ( *itr != nTab && bUndo) pUndoDoc->AddUndoTab( *itr, *itr ); - std::unique_ptr<ScMarkData> pUndoMark; + boost::scoped_ptr<ScMarkData> pUndoMark; if (bUndo) pUndoMark.reset(new ScMarkData(aMark)); |