diff options
-rw-r--r-- | sc/source/filter/excel/impop.cxx | 4 | ||||
-rw-r--r-- | sc/source/filter/inc/imp_op.hxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx index 8e34342cf017..1d24749aca16 100644 --- a/sc/source/filter/excel/impop.cxx +++ b/sc/source/filter/excel/impop.cxx @@ -1228,7 +1228,7 @@ void ImportExcel::NewTable() InitializeTable( nTab ); XclImpOutlineDataBuffer* pNewItem = new XclImpOutlineDataBuffer( GetRoot(), nTab ); - pOutlineListBuffer->push_back( pNewItem ); + pOutlineListBuffer->push_back( std::unique_ptr<XclImpOutlineDataBuffer>(pNewItem) ); pExcRoot->pColRowBuff = pColRowBuff = pNewItem->GetColRowBuff(); pColOutlineBuff = pNewItem->GetColOutline(); pRowOutlineBuff = pNewItem->GetRowOutline(); @@ -1259,7 +1259,7 @@ void ImportExcel::PostDocLoad() // outlines for all sheets, sets hidden rows and columns (#i11776# after filtered ranges) for (XclImpOutlineListBuffer::iterator itBuffer = pOutlineListBuffer->begin(); itBuffer != pOutlineListBuffer->end(); ++itBuffer) - itBuffer->Convert(); + (*itBuffer)->Convert(); // document view settings (before visible OLE area) GetDocViewSettings().Finalize(); diff --git a/sc/source/filter/inc/imp_op.hxx b/sc/source/filter/inc/imp_op.hxx index df0111578053..e5455330c047 100644 --- a/sc/source/filter/inc/imp_op.hxx +++ b/sc/source/filter/inc/imp_op.hxx @@ -32,7 +32,7 @@ #include "excdefs.hxx" #include <rtl/ref.hxx> -#include <boost/ptr_container/ptr_vector.hpp> +#include <vector> #include <memory> #include <unordered_map> @@ -107,7 +107,7 @@ protected: XclImpOutlineBuffer* pRowOutlineBuff; XclImpColRowSettings* pColRowBuff; // Col/Row settings 1 table - typedef boost::ptr_vector< XclImpOutlineDataBuffer > XclImpOutlineListBuffer; + typedef std::vector< std::unique_ptr<XclImpOutlineDataBuffer> > XclImpOutlineListBuffer; XclImpOutlineListBuffer* pOutlineListBuffer; LastFormulaMapType maLastFormulaCells; // Keep track of last formula cells in each column. |